From f82c6694757ff71c30aabecc9f76e074538375b2 Mon Sep 17 00:00:00 2001 From: Johann Hoffmann Date: Tue, 19 Nov 2024 13:35:06 +0100 Subject: [PATCH 01/10] provide/inject editModeIsActive from section.js -> currently used in bookmark widget to move redundant config modal into actual widget when said mode is on; --- public/js/components/Dashboard/Section.js | 12 +++- public/js/components/DashboardWidget/Url.js | 62 +++++++++++---------- 2 files changed, 43 insertions(+), 31 deletions(-) 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)}} - +