Sha256: 3cc61735a1b20e0e6e98b8f8465a56c6654201f5b8c5c315bf3cbaa5c8cfdebd
Contents?: true
Size: 1.22 KB
Versions: 4
Compression:
Stored size: 1.22 KB
Contents
<template> <dynamic-form class="mt-2" :parentKey="currentSectionBlock.id" :settings="sectionBlockSettings" :content="currentSectionBlockContent" :focusedSetting="settingId" @blur="onBlur" @change="updateSectionBlockContent" /> </template> <script> import { mapActions } from 'vuex' import DynamicForm from '@/components/dynamic-form' 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, ) }, }, 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
4 entries across 4 versions & 1 rubygems