]> source.dussan.org Git - nextcloud-server.git/commitdiff
Push widget metadata to callback
authorJulius Härtl <jus@bitgrid.net>
Fri, 14 Aug 2020 14:37:37 +0000 (16:37 +0200)
committerJulius Härtl <jus@bitgrid.net>
Wed, 19 Aug 2020 15:07:27 +0000 (17:07 +0200)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/dashboard/src/App.vue

index db2f20382b17412673f9588d76932850e66fb941..33f820ecd7a2ecca0c1889587b0afa3736ee1f5a 100644 (file)
@@ -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)