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)}} - + ({ title_input: "", url_input: "", @@ -10,7 +17,7 @@ export default { invalidTitel:false, } }), - mixins: [AbstractWidget], + computed: { tagName() { return this.config.tag !== undefined && this.config.tag.length > 0 @@ -97,16 +104,31 @@ export default { }, created() { - this.$emit('setConfig', true); + // + // this.$emit('setConfig', true); -> use this to enable widget config mode if needed }, template: /*html*/ ` - - - - {{$p.t('bookmark','newLink')}} - - + + + + {{ tagName }} + + + + + {{ link.title }} + + + + + + + + {{$p.t('bookmark','emptyBookmarks')}} + + + @@ -123,27 +145,7 @@ export default { {{$p.t('bookmark','saveLink')}} - - - - - - - {{ tagName }} - - - - - {{ link.title }} - - - - - - - - {{$p.t('bookmark','emptyBookmarks')}} - +