Browse Source

Rename progressBar → statusBar.

Renée Kooi 6 years ago
parent
commit
4107920e8a

+ 2 - 2
packages/@uppy/transloadit-preset/src/form.js

@@ -29,9 +29,9 @@ function form (target, opts) {
     target
   })
 
-  if (opts.progressBar) {
+  if (opts.statusBar) {
     uppy.use(StatusBar, {
-      target: opts.progressBar,
+      target: opts.statusBar,
       // hide most of the things to keep our api simple,
       // we can change this in the future if someone needs it
       hideUploadButton: true,

+ 2 - 2
website/src/docs/transloadit-preset-form.md

@@ -64,7 +64,7 @@ If provided, the [`<input accept>`](https://developer.mozilla.org/en-US/docs/Web
 
 **TODO also have an onProgress() callback or something for custom progress**
 
-Uploads using HTML forms have no builtin progress reporting. With the Transloadit Preset, you can use the `progressBar` option to show an [@uppy/status-bar](/docs/status-bar): an element styled like a progress bar, reporting both upload and Assembly execution progress.
+Uploads using HTML forms have no builtin progress reporting. With the Transloadit Preset, you can use the `statusBar` option to show an [@uppy/status-bar](/docs/status-bar): an element styled like a progress bar, reporting both upload and Assembly execution progress.
 
 Point it to an element or a CSS selector:
 
@@ -74,7 +74,7 @@ Point it to an element or a CSS selector:
 </form>
 <script>
 transloadit.form('form#my-form', {
-  progressBar: '#my-form .progress'
+  statusBar: '#my-form .progress'
   // ...
 })
 </script>