Explorar el Código

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

Artur Paikin hace 8 años
padre
commit
cd0b918e1c
Se han modificado 1 ficheros con 10 adiciones y 6 borrados
  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
     const plugin = this
     this.target = this.mount(target, plugin)
     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.initEvents()
     this.actions()
     this.actions()