|
@@ -1,5 +1,6 @@
|
|
|
const Uppy = require('@uppy/core')
|
|
|
const Form = require('@uppy/form')
|
|
|
+const StatusBar = require('@uppy/status-bar')
|
|
|
const AttachFileInputs = require('./AttachFileInputs')
|
|
|
const TransloaditFormResult = require('./TransloaditFormResult')
|
|
|
const addTransloaditPlugin = require('./addTransloaditPlugin')
|
|
@@ -28,6 +29,19 @@ function form (target, opts) {
|
|
|
target
|
|
|
})
|
|
|
|
|
|
+ if (opts.progressBar) {
|
|
|
+ uppy.use(StatusBar, {
|
|
|
+ target: opts.progressBar,
|
|
|
+ // hide most of the things to keep our api simple,
|
|
|
+ // we can change this in the future if someone needs it
|
|
|
+ hideUploadButton: true,
|
|
|
+ hideAfterFinish: true,
|
|
|
+ hideRetryButton: true,
|
|
|
+ hidePauseResumeButtons: true,
|
|
|
+ hideCancelButtons: true
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
return uppy
|
|
|
}
|
|
|
|