From 9ed08fb40c618aeb0343a686d746916265244de3 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Mon, 14 Oct 2024 13:36:31 +0200 Subject: [PATCH] default value for hasConfig is false and the emit update for the URL dashboard widget and only loads the config component if the dashboard widget actually has a config --- public/js/components/Dashboard/Item.js | 6 +++--- public/js/components/DashboardWidget/Url.js | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/public/js/components/Dashboard/Item.js b/public/js/components/Dashboard/Item.js index 484171857..d3212c72e 100755 --- a/public/js/components/Dashboard/Item.js +++ b/public/js/components/Dashboard/Item.js @@ -12,7 +12,7 @@ export default { widget: null, tmpConfig: {}, isLoading: false, - hasConfig: true, + hasConfig: false, sharedData: null, }), emits: [ @@ -117,10 +117,10 @@ export default {
- +
- + diff --git a/public/js/components/DashboardWidget/Url.js b/public/js/components/DashboardWidget/Url.js index eb7dfdae4..b87ef4235 100755 --- a/public/js/components/DashboardWidget/Url.js +++ b/public/js/components/DashboardWidget/Url.js @@ -71,6 +71,10 @@ export default { async mounted() { await this.fetchBookmarks(); }, + created() + { + this.$emit('setConfig', true); + }, template: /*html*/ `