Browse Source

dashboard: support mounting StatusBar and Informer on subclasses

Renée Kooi 7 years ago
parent
commit
bae5e63be1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/plugins/Dashboard/index.js

+ 2 - 2
src/plugins/Dashboard/index.js

@@ -407,13 +407,13 @@ module.exports = class DashboardUI extends Plugin {
 
     if (!this.opts.disableStatusBar) {
       this.core.use(StatusBar, {
-        target: DashboardUI
+        target: this.constructor
       })
     }
 
     if (!this.opts.disableInformer) {
       this.core.use(Informer, {
-        target: DashboardUI
+        target: this.constructor
       })
     }