Pārlūkot izejas kodu

Make ordering of plugin options consistent

It's easier to scan the options if "locale" is at the end.
Janko Marohnić 7 gadi atpakaļ
vecāks
revīzija
8fbb293570
2 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 2 2
      src/plugins/FileInput.js
  2. 2 2
      website/src/docs/fileinput.md

+ 2 - 2
src/plugins/FileInput.js

@@ -21,8 +21,8 @@ module.exports = class FileInput extends Plugin {
       target: null,
       allowMultipleFiles: true,
       pretty: true,
-      locale: defaultLocale,
-      inputName: 'files[]'
+      inputName: 'files[]',
+      locale: defaultLocale
     }
 
     // Merge default options with the ones set by user

+ 2 - 2
website/src/docs/fileinput.md

@@ -16,12 +16,12 @@ uppy.use(FileInput, {
   target: '.UppyForm',
   multipleFiles: true,
   pretty: true,
+  inputName: 'files[]',
   locale: {
     strings: {
       selectToUpload: 'Select to upload'
     }
-  },
-  inputName: 'files[]'
+  }
 })
 ```