stable

Clone or download

Read-only

Open the changelog modal when a new version is dropped

Part of: story #14876 propose changelog on documents by default How to test: - Drop a new version on a file --> A changelog modal is open --> This modal looks like the one that opens on click on [upload new version], except it doesn't have the "Lock version" option and the file selector - submit without filling any fields - Go to the history of the document --> A new version has been uploaded, no title, no changelog - Fill up the fields and submit - Go to the history of the document --> A new version has been uploaded with the title and the changelog you filled up in the modal - [Cancel] closes the modal, no upload is done - Same behavior when you click the X in the modal header - Errors are displayed in a tlp-alert-danger in the modal if any Change-Id: I766975cda9ec46e37a0011a8a55674078708ffe0

Modified Files

Name
M plugins/document/scripts/document/components/Folder/DragNDrop/DragNDropHandler.test.js +70 −6 Go to diff View file
M plugins/document/scripts/document/components/Folder/DragNDrop/DragNDropHandler.vue +13 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/FolderHeader.test.js +16 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/FolderHeader.vue +21 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/ModalCreateNewItemVersion/FileVersionChangelogModal.test.js +72 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/ModalCreateNewItemVersion/FileVersionChangelogModal.vue +122 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/Property/ItemUpdateProperties.test.js +36 −18 Go to diff View file
M plugins/document/scripts/document/components/Folder/Property/ItemUpdateProperties.vue +20 −4 Go to diff View file