From 7936e08d3d8515861720bfe0cdc92bff23882bfe Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Fri, 21 Mar 2025 12:49:29 +0100 Subject: [PATCH] refactor(Dasboard Item): adds container for actions events from Dashboard widgets --- public/js/components/Dashboard/Item.js | 22 +++++++++++++++---- public/js/components/Dashboard/Section.js | 1 + .../js/components/DashboardWidget/Abstract.js | 6 ++++- public/js/components/DashboardWidget/Url.js | 17 +++++++++----- public/js/components/Drop/Grid.js | 4 ++-- 5 files changed, 37 insertions(+), 13 deletions(-) diff --git a/public/js/components/Dashboard/Item.js b/public/js/components/Dashboard/Item.js index 379437b74..1ff6a4516 100644 --- a/public/js/components/Dashboard/Item.js +++ b/public/js/components/Dashboard/Item.js @@ -27,6 +27,7 @@ export default { "configClosed" ], props: [ + "index", "id", "config", "width", @@ -44,6 +45,15 @@ export default { ready() { return this.component && this.arguments !== null; }, + widget_action_identifier(){ + return `${this.widget.widget_kurzbz}-${this.index}-action-section`; + }, + widgetInformation(){ + return { + action_section_identifier: this.widget_action_identifier, + widget_kurzbz: this.widget.widget_kurzbz, + } + } }, methods: { getWidgetC4Link(widget) { @@ -120,14 +130,18 @@ export default {
-