Browse Source

allow using custom StatusBar and Informer by setting disableStatusBar: true, this.opts.disableInformer: true

Artur Paikin 7 years ago
parent
commit
cd0b918e1c
1 changed files with 10 additions and 6 deletions
  1. 10 6
      src/plugins/Dashboard/index.js

+ 10 - 6
src/plugins/Dashboard/index.js

@@ -396,13 +396,17 @@ module.exports = class DashboardUI extends Plugin {
     const plugin = this
     this.target = this.mount(target, plugin)
 
-    this.core.use(StatusBar, {
-      target: DashboardUI
-    })
+    if (!this.opts.disableStatusBar) {
+      this.core.use(StatusBar, {
+        target: DashboardUI
+      })
+    }
 
-    this.core.use(Informer, {
-      target: DashboardUI
-    })
+    if (!this.opts.disableInformer) {
+      this.core.use(Informer, {
+        target: DashboardUI
+      })
+    }
 
     this.initEvents()
     this.actions()