stable

Clone or download

Read-only

Show error modal when the archive exceeds size threshold

part of: story #12404 download folder as zip How to test: - Lower the max_archive_size threshold to 1MB - Add some files in the folder you want to download until its size is above 1 MB - Try to download it --> The modal opens --> It shows the threshold and the archive to be downloaded size, both in MB - Increase the threshold (make sure it is greater than the archive to be downloaded size) - try again --> You can download the archive Change-Id: I82f64cc7767297e714868ffa62d2858828215ddf

Modified Files

Name
M plugins/docman/include/REST/v1/DocmanItemsResource.php +1 −1 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.js +7 −0 Go to diff View file
D plugins/document/scripts/document/components/Folder/DropDown/DownloadFolderAsZip.vue +0 −49 Go to diff View file
A plugins/document/scripts/document/components/Folder/DropDown/DownloadFolderAsZip/DownloadFolderAsZip.test.js +97 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/DropDown/DownloadFolderAsZip/DownloadFolderAsZip.vue +88 −0 Go to diff View file
R plugins/document/scripts/document/components/Folder/DropDown/DownloadFolderAsZip.test.js Go to diff View file
A plugins/document/scripts/document/components/Folder/DropDown/DownloadFolderAsZip/ModalMaxArchiveSizeThresholdExceeded.vue +105 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/DropDownMenu.vue +1 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/FolderHeader.test.js +35 −4 Go to diff View file
M plugins/document/scripts/document/components/Folder/FolderHeader.vue +26 −0 Go to diff View file
M plugins/document/scripts/document/po/fr.po +26 −0 Go to diff View file
M plugins/document/scripts/document/store/actions.js +12 −0 Go to diff View file
M plugins/document/scripts/document/store/actions.test.js +46 −0 Go to diff View file