stable

Clone or download

Read-only

New modal for link

part of story #12447 Modal new document for empty/wiki/link How to test: In new doman UI try to create a new document: - you should be able to choose "Empty" and "Link" for types By default "Empty" type is selected, it will be file in a next commit. Click on link: - choosen type should be hiighlighted - a new input enables you to add the link - backend is not done for now, so if you try to add a new link REST error is displayed Empty item work as usual Refactorings: - took the opportunity to align "type" property for POST to the one sent in item representation - some icon classes has been extracted to a constant to not repeat ourselves (less chance to introduce different icons for the same type) - use brand new tlp-modal-feedback instead of custom error display in modal - move modal header and footer in their respective components in order to improve readability of the modal component Change-Id: I4b1f8bed40d034470ff87ce7f74f2c28f52569d5

Modified Files

Name
M plugins/docman/include/REST/v1/DocmanItemsResource.php +3 −3 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTest.php +2 −2 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.js +2 −4 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.spec.js +2 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/ItemTitle/DocumentCellTitle.vue +3 −3 Go to diff View file
M plugins/document/scripts/document/components/Folder/ItemTitle/LinkCellTitle.vue +5 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/ItemTitle/WikiCellTitle.vue +5 −1 Go to diff View file
R plugins/document/scripts/document/components/Folder/NewItem/NewItemModalError.vue Go to diff View file
A plugins/document/scripts/document/components/Folder/NewItem/ModalFooter.vue +40 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/NewItem/ModalHeader.vue +41 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/NewItem/NewItemModal.vue +40 −57 Go to diff View file
A plugins/document/scripts/document/components/Folder/NewItem/Property/LinkProperties.vue +60 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/NewItem/TypeSelector.vue +61 −0 Go to diff View file
M plugins/document/scripts/document/constants.js +6 −0 Go to diff View file
M plugins/document/scripts/document/helpers/icon-for-mime-type.js +4 −2 Go to diff View file
M plugins/document/scripts/document/po/fr.po +9 −0 Go to diff View file
M plugins/document/scripts/document/po/template.pot +9 −0 Go to diff View file
M plugins/document/scripts/document/store/actions.js +4 −4 Go to diff View file
M plugins/document/themes/BurningParrot/document/_new-document.scss +1 −4 Go to diff View file