stable
Clone or download
This is a part of story #13589 Update hardcoded metadata The modal does nothing for the moment. The behaviours of the modal will be made later How to test: - In the dropdown of the item click on "Properties" menu => If the item is a file => The modal should appear. => If the Status metadata is enabled, you should see the field next to the title => If the obsolescence date metadata is activated , you should see the the field in a the new "Other information" section . Note : The new obsolescence date field will be remade in a dedicated commit => If the item is not a file => you should be redirected to the old UI. - In the updated properties modal => when you update existing item metadata, status and obsolesence date should be correctly displayed => when you update an item title, you should not be able to write the title of an other existing item - The created item modal should work as before This patch rework the data-binding for input metadata (title, status and obsolesence date) The previous way was based on events, and it makes the component painful to be reused. Change-Id: Ibefdf4a5800af4d65b6563ea43d0b6ce4c8afa99
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/document/scripts/document/app.spec.js | +5 | −2 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/ActionsDropDown/DropdownMenu.spec.js | +49 | −0 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/ActionsDropDown/DropdownMenu.vue | +25 | −5 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/FolderHeader.vue | +32 | −7 | Go to diff View file |
A | plugins/document/scripts/document/components/Folder/Metadata/GlobalMetadata.spec.js | +153 | −0 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/Metadata/GlobalMetadata.vue | +44 | −6 | Go to diff View file |
D | plugins/document/scripts/document/components/Folder/Metadata/ObsolescenceDateMetadata.spec.js | +0 | −65 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/Metadata/ObsolescenceDateMetadata.vue | +23 | −11 | Go to diff View file |
A | plugins/document/scripts/document/components/Folder/Metadata/OtherInformationMetadata.spec.js | +142 | −0 | Go to diff View file |
A | plugins/document/scripts/document/components/Folder/Metadata/OtherInformationMetadata.vue | +64 | −0 | Go to diff View file |
A | plugins/document/scripts/document/components/Folder/Metadata/OwnerMetadata.vue | +49 | −0 | Go to diff View file |
D | plugins/document/scripts/document/components/Folder/Metadata/StatusMetadata.spec.js | +0 | −78 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/Metadata/StatusMetadata.vue | +17 | −9 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/Metadata/TitleMetadata.spec.js | +145 | −56 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/Metadata/TitleMetadata.vue | +62 | −29 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/ModalCommon/ModalHeader.vue | +1 | −1 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/ModalNewItem/NewFolderModal.vue | +19 | −20 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/ModalNewItem/NewItemModal.vue | +31 | −41 | Go to diff View file |
A | plugins/document/scripts/document/components/Folder/ModalUpdateMetadata/UpdateMetadataModal.vue | +102 | −0 | Go to diff View file |
M | plugins/document/scripts/document/constants.js | +2 | −4 | Go to diff View file |
A | plugins/document/scripts/document/helpers/metadata-helpers/check-item-title.js | +52 | −0 | Go to diff View file |
A | plugins/document/scripts/document/helpers/metadata-helpers/check-item-title.spec.js | +180 | −0 | Go to diff View file |
A | plugins/document/scripts/document/helpers/metadata-helpers/hardcoded-metadata-mapping-helper.js | +38 | −0 | Go to diff View file |
A | plugins/document/scripts/document/helpers/metadata-helpers/hardcoded-metadata-mapping-helper.spec.js | +38 | −0 | Go to diff View file |
M | plugins/document/scripts/document/po/fr.po | +12 | −0 | Go to diff View file |
M | plugins/document/scripts/document/store/getters.js | +1 | −1 | Go to diff View file |
M | plugins/document/scripts/document/store/mutations-folder-content.js | +1 | −1 | Go to diff View file |
M | plugins/document/themes/BurningParrot/document/_document.scss | +1 | −0 | Go to diff View file |
A | plugins/document/themes/BurningParrot/document/_metadata.scss | +33 | −0 | Go to diff View file |
M | plugins/document/themes/BurningParrot/document/_new-document.scss | +0 | −4 | Go to diff View file |