Push widget metadata to callback

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/22214/head
Julius Härtl 2020-08-14 16:37:37 +07:00
parent b49f814faa
commit 338f09b04b
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 3 additions and 1 deletions

@ -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)