stable

Clone or download

Read-only

Custom metadata are taken in account in create new document modal

part of story #12634 Add custom metadata in modal Only 'text' custom metadata are displayed in read only mode. How to test: - create documents into a folder who does not have default custom metadata => item are created - create documents into a folder who have custom metatada => default values are inherited at creation This patch is big enough following points will be done in a dedicated commit - new folder does not have custom metadata - creation of file by drag and drop does not inherit parent metadata - required is not enforced by REST route, yet Change-Id: I470d86b49e12abbc4d260302ad94a872c9e13ecc

Modified Files

Name
M plugins/document/scripts/document/api/rest-querier.js +12 −1 Go to diff View file
M plugins/document/scripts/document/app.spec.js +12 −4 Go to diff View file
R plugins/document/scripts/document/components/Folder/Metadata/OtherInformationMetadataForCreate.vue Go to diff View file
A plugins/document/scripts/document/components/Folder/Metadata/CustomMetadata/CustomMetadataText.spec.js +78 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/Metadata/CustomMetadata/CustomMetadataText.vue +47 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/Metadata/DocumentMetadata/OtherInformationMetadataForCreate.spec.js +151 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/Metadata/DocumentMetadata/OtherInformationMetadataForCreate.vue +78 −0 Go to diff View file
R plugins/document/scripts/document/components/Folder/Metadata/OtherInformationMetadataForUpdate.spec.js Go to diff View file
R plugins/document/scripts/document/components/Folder/Metadata/OtherInformationMetadataForUpdate.vue Go to diff View file
M plugins/document/scripts/document/components/Folder/Metadata/FolderMetadata/FolderDefaultPropertiesForCreate.vue +3 −1 Go to diff View file
D plugins/document/scripts/document/components/Folder/Metadata/OtherInformationMetadataForCreate.spec.js +0 −88 Go to diff View file
A plugins/document/scripts/document/components/Folder/ModalNewItem/NewItemModal.spec.js +116 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/ModalNewItem/NewItemModal.vue +15 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/ModalUpdateMetadata/UpdateMetadataModal.vue +1 −1 Go to diff View file
M plugins/document/scripts/document/constants.js +0 −2 Go to diff View file
A plugins/document/scripts/document/helpers/metadata-helpers/custom-metadata-helper.js +32 −0 Go to diff View file
A plugins/document/scripts/document/helpers/metadata-helpers/custom-metadata-helper.spec.js +41 −0 Go to diff View file
M plugins/document/scripts/document/helpers/metadata-helpers/data-transformatter-helper.js +21 −0 Go to diff View file
M plugins/document/scripts/document/helpers/metadata-helpers/data-transformatter-helper.spec.js +39 −1 Go to diff View file
M plugins/document/scripts/document/store/actions.js +3 −2 Go to diff View file
M plugins/document/scripts/document/store/index.js +3 −1 Go to diff View file
A plugins/document/scripts/document/store/metadata/metadata-actions.js +31 −0 Go to diff View file
A plugins/document/scripts/document/store/metadata/metadata-actions.spec.js +84 −0 Go to diff View file
A plugins/document/scripts/document/store/metadata/metadata-default-state.js +25 −0 Go to diff View file
A plugins/document/scripts/document/store/metadata/metadata-mutations.js +25 −0 Go to diff View file
A plugins/document/scripts/document/store/metadata/metadata-mutations.spec.js +37 −0 Go to diff View file
A plugins/document/scripts/document/store/metadata/module.js +29 −0 Go to diff View file
M plugins/document/themes/BurningParrot/document/_metadata.scss +8 −0 Go to diff View file