Sha256: 3733588030e52b12706c0c60aadc5fbfbe0b0656dec3a2e62c7053729e7ca92e
Contents?: true
Size: 1.34 KB
Versions: 7
Compression:
Stored size: 1.34 KB
Contents
<template> <dynamic-form class="mt-2" :parentKey="currentSectionBlock.id" :settings="sectionBlockSettings" :content="currentSectionBlockContent" :focusedSetting="settingId" :i18nScope="i18nScope" @blur="onBlur" @change="updateSectionBlockContent" /> </template> <script> import { mapActions } from 'vuex' import DynamicForm from '@/components/dynamic-form/index.vue' export default { name: 'SectionBlockSettingList', components: { DynamicForm }, props: { sectionBlockId: { type: String, default: undefined }, settingId: { type: String, default: undefined }, advanced: { type: Boolean, default: false }, }, computed: { sectionBlockSettings() { return this.advanced ? this.currentSectionBlockAdvancedSettings : this.services.section.filterSettings( this.currentSectionBlockSettings, this.currentSectionBlockContent, ) }, i18nScope() { return `${this.currentSectionBlockI18nScope}.settings` }, }, methods: { ...mapActions(['updateSectionBlockContent']), onBlur() { this.$router .push({ name: 'editSectionBlock', params: { sectionBlockId: this.sectionBlockId }, }) .catch((err) => { if (err.name !== 'NavigationDuplicated') throw err }) }, }, } </script>
Version data entries
7 entries across 7 versions & 1 rubygems