stable

Clone or download

Read-only

feat: remove section

In the section dropdown, user can delete the section. The artifact is removed from the document, but the artifact itself is not affected. Closes story #38290: remove a section Change-Id: Ieb8b1bb6954280ba5bea5e5a5b05bd9262b0c400

Modified Files

Name
M plugins/artidoc/include/Artidoc/Document/ArtidocDao.php +11 −1 Go to diff View file
A plugins/artidoc/include/Artidoc/Document/DeleteOneSection.php +28 −0 Go to diff View file
M plugins/artidoc/include/Artidoc/REST/v1/ArtidocSectionsResource.php +54 −1 Go to diff View file
A plugins/artidoc/include/Artidoc/REST/v1/DeleteSectionHandler.php +82 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/po/fr_FR.po +9 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/App.vue +13 −1 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/components/GlobalErrorMessageModal.vue +96 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/SectionContent.test.ts +6 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/SectionContent.vue +11 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/header/SectionDropdown.test.ts +5 −4 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/header/SectionDropdown.vue +22 −1 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useSectionEditor.test.ts +9 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useSectionEditor.ts +22 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/global-error-message-injection-key.ts +29 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/helpers/rest-querier.ts +5 −1 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/helpers/stubs/InjectSectionsStoreStub.ts +9 −4 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/helpers/stubs/SectionEditorStub.ts +1 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/stores/useSectionsStore.test.ts +9 −1 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/stores/useSectionsStore.ts +31 −7 Go to diff View file
M plugins/artidoc/tests/integration/Artidoc/Document/ArtidocDaoTest.php +16 −0 Go to diff View file
M plugins/artidoc/tests/rest/Artidoc/ArtidocTest.php +47 −1 Go to diff View file