stable

Clone or download

Read-only

Enhance the error handling when user drag files according the filename

pattern setting Part of story #24166: apply a naming pattern on files to enforce a convention The current dropzone is now highlighted according to the configuration of the filename pattern. An error message should be displayed when the filename pattern is enforced and if the user drop more than 1 file Bonus: I take the opportunity to convert the CurrentFolderDropZone in TS and by using the compostion API Change-Id: I84b142e550734b5e3ca11c529c68665006fbac8d

Modified Files

Name
M plugins/document/include/Tree/DocumentTreePresenter.php +4 −1 Go to diff View file
R plugins/document/scripts/document/components/Folder/DragNDrop/CurrentFolderDropZone.test.js Go to diff View file
M plugins/document/scripts/document/components/Folder/DragNDrop/CurrentFolderDropZone.vue +52 −41 Go to diff View file
M plugins/document/scripts/document/components/Folder/DragNDrop/DragNDropHandler.test.js +57 −5 Go to diff View file
M plugins/document/scripts/document/components/Folder/DragNDrop/DragNDropHandler.vue +35 −8 Go to diff View file
M plugins/document/scripts/document/index.js +2 −0 Go to diff View file
M plugins/document/scripts/document/po/fr_FR.po +16 −8 Go to diff View file
A plugins/document/scripts/document/pretty-kibibytes.d.ts +22 −0 Go to diff View file
M plugins/document/scripts/document/store/configuration/index.ts +2 −1 Go to diff View file
M plugins/document/scripts/document/store/getters.ts +7 −0 Go to diff View file
M plugins/document/templates/document-tree.mustache +1 −0 Go to diff View file