stable

Clone or download

Read-only

Prevent user to drop more than n files

Part of story #10721: upload documents with drag'n drop Try to drag 'n drop more than n files[0] into a folder. An error modal should appear and no upload is performed. If n === 0, then dropzone is always in error and on drop, no upload is performed. Please note that the dropzone displays how much files can be dropped. [0] defined in plugins/document/templates/document-tree.mustache Change-Id: I46cdb04712624e8fb57f73cf10a4c1cc2cefdb9b

Modified Files

Name
M plugins/document/scripts/document/components/App.vue +4 −2 Go to diff View file
A plugins/document/scripts/document/components/Folder/DragNDrop/CurrentFolderDropZone.vue +72 −0 Go to diff View file
R plugins/document/scripts/document/components/Folder/DragNDropInCurrentFolder.vue Go to diff View file
A plugins/document/scripts/document/components/Folder/DragNDrop/MaxFilesDragndropErrorModal.vue +78 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/FolderView.vue +2 −2 Go to diff View file
M plugins/document/scripts/document/index.js +3 −1 Go to diff View file
M plugins/document/scripts/document/po/fr.po +20 −2 Go to diff View file
M plugins/document/scripts/document/po/template.pot +16 −2 Go to diff View file
M plugins/document/scripts/document/store/getters.js +2 −0 Go to diff View file
M plugins/document/scripts/document/store/mutations.js +5 −1 Go to diff View file
M plugins/document/scripts/document/store/state.js +2 −1 Go to diff View file
M plugins/document/templates/document-tree.mustache +2 −1 Go to diff View file