From 7ae34e06400f52b68e6f059bc324282567bac8fa Mon Sep 17 00:00:00 2001 From: chfhtw Date: Mon, 27 Apr 2026 11:04:46 +0200 Subject: [PATCH] hide everything in adminMode --- public/js/components/DashboardWidget/Url.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/public/js/components/DashboardWidget/Url.js b/public/js/components/DashboardWidget/Url.js index 5493a267f..5817f57aa 100644 --- a/public/js/components/DashboardWidget/Url.js +++ b/public/js/components/DashboardWidget/Url.js @@ -16,6 +16,9 @@ export default { PvAutoComplete: primevue.autocomplete, }, mixins: [AbstractWidget], + inject: [ + "adminMode" + ], data: () => ({ ready: false, bookmark_id: null, @@ -235,13 +238,15 @@ export default { return { bookmarks, tags, actions } }, async mounted() { - await this.actions.fetch(); - this.ready = true; + if (!this.adminMode) { + await this.actions.fetch(); + this.ready = true; + } }, template: /*html*/ `
-
+