浏览代码

Add option to hide progress after finish in Dashboard

Artur Boryś 7 年之前
父节点
当前提交
41d1422025
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/plugins/Dashboard/index.js

+ 3 - 1
src/plugins/Dashboard/index.js

@@ -75,6 +75,7 @@ module.exports = class Dashboard extends Plugin {
       defaultTabIcon: defaultTabIcon,
       defaultTabIcon: defaultTabIcon,
       showProgressDetails: false,
       showProgressDetails: false,
       hideUploadButton: false,
       hideUploadButton: false,
+      hideProgressAfterFinish: false,
       note: null,
       note: null,
       closeModalOnClickOutside: false,
       closeModalOnClickOutside: false,
       locale: defaultLocale,
       locale: defaultLocale,
@@ -497,7 +498,8 @@ module.exports = class Dashboard extends Plugin {
     if (!this.opts.disableStatusBar) {
     if (!this.opts.disableStatusBar) {
       this.uppy.use(StatusBar, {
       this.uppy.use(StatusBar, {
         target: this,
         target: this,
-        hideUploadButton: this.opts.hideUploadButton
+        hideUploadButton: this.opts.hideUploadButton,
+        hideAfterFinish: this.opts.hideProgressAfterFinish
       })
       })
     }
     }