From 338f09b04bf096254253c8319c83e65c35aeb7ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20H=C3=A4rtl?= Date: Fri, 14 Aug 2020 16:37:37 +0200 Subject: [PATCH] Push widget metadata to callback MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/dashboard/src/App.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/dashboard/src/App.vue b/apps/dashboard/src/App.vue index db2f20382b1..33f820ecd7a 100644 --- a/apps/dashboard/src/App.vue +++ b/apps/dashboard/src/App.vue @@ -222,7 +222,9 @@ export default { continue } if (element) { - this.callbacks[app](element[0]) + this.callbacks[app](element[0], { + widget: this.panels[app], + }) Vue.set(this.panels[app], 'mounted', true) } else { console.error('Failed to register panel in the frontend as no backend data was provided for ' + app) -- 2.39.5