Sha256: dec4ec5d1041274895b4a3112b81be59e8805c6ca1dd9dbfdabf91725a938a85
Contents?: true
Size: 1.14 KB
Versions: 11
Compression:
Stored size: 1.14 KB
Contents
<template> <dynamic-form class="mt-2" :parentKey="currentSection.id" :settings="sectionSettings" :content="currentSectionContent" :focusedSetting="settingId" @blur="onBlur" @change="updateSectionContent" /> </template> <script> import { mapActions } from 'vuex' import DynamicForm from '@/components/dynamic-form/index.vue' export default { name: 'SectionSettingList', components: { DynamicForm }, props: { sectionId: { type: String, default: undefined }, settingId: { type: String, default: undefined }, advanced: { type: Boolean, default: false }, }, computed: { sectionSettings() { return this.advanced ? this.currentSectionAdvancedSettings : this.services.section.filterSettings( this.currentSectionSettings, this.currentSectionContent, ) }, }, methods: { ...mapActions(['updateSectionContent']), onBlur() { this.$router .push({ name: 'editSection', params: { sectionId: this.sectionId } }) .catch((err) => { if (err.name !== 'NavigationDuplicated') throw err }) }, }, } </script>
Version data entries
11 entries across 11 versions & 1 rubygems