diff --git a/public/js/components/Dashboard/Section.js b/public/js/components/Dashboard/Section.js index 3fbc40af6..10c2f8f4a 100644 --- a/public/js/components/Dashboard/Section.js +++ b/public/js/components/Dashboard/Section.js @@ -32,7 +32,17 @@ export default { editMode: this.adminMode } }, + provide() { + return { + editModeIsActive: Vue.computed(() => + this.editModeIsActive + ), + } + }, computed: { + editModeIsActive() { + return this.editMode && !this.configOpened + }, getSectionStyle() { return 'margin-bottom: 8px;'; }, @@ -187,7 +197,7 @@ export default { {{$p.t('ui/section' + name)}} - +