Procházet zdrojové kódy

dashboard: support mounting StatusBar and Informer on subclasses

Renée Kooi před 7 roky
rodič
revize
bae5e63be1
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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) {
     if (!this.opts.disableStatusBar) {
       this.core.use(StatusBar, {
       this.core.use(StatusBar, {
-        target: DashboardUI
+        target: this.constructor
       })
       })
     }
     }
 
 
     if (!this.opts.disableInformer) {
     if (!this.opts.disableInformer) {
       this.core.use(Informer, {
       this.core.use(Informer, {
-        target: DashboardUI
+        target: this.constructor
       })
       })
     }
     }