stable
Clone or download
Read-only
Now when the user clicks on [save] button for a new section, the section is properly saved. The TOC is updated with the new title, the section is highlighted as success and the editor is closed. Note: the management of page leave whith open editor is broken, it will be managed in a dedicated contribution. Part of story #38288: add a new section Change-Id: Ibd73153eb14bcd7454e5c6dfb9a6fa5dd623dcf6
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/artidoc/scripts/artidoc/src/App.test.ts | +3 | −5 | Go to diff View file |
M | plugins/artidoc/scripts/artidoc/src/App.vue | +3 | −2 | Go to diff View file |
M | plugins/artidoc/scripts/artidoc/src/components/AddNewSectionButton.vue | +2 | −2 | Go to diff View file |
M | plugins/artidoc/scripts/artidoc/src/components/DocumentContent.vue | +1 | −1 | Go to diff View file |
M | plugins/artidoc/scripts/artidoc/src/components/SectionContent.test.ts | +14 | −0 | Go to diff View file |
M | plugins/artidoc/scripts/artidoc/src/components/SectionContent.vue | +15 | −3 | Go to diff View file |
M | plugins/artidoc/scripts/artidoc/src/components/SectionDropdown.vue | +3 | −3 | Go to diff View file |
M | plugins/artidoc/scripts/artidoc/src/composables/useSectionEditor.test.ts | +272 | −8 | Go to diff View file |
M | plugins/artidoc/scripts/artidoc/src/composables/useSectionEditor.ts | +71 | −30 | Go to diff View file |
A | plugins/artidoc/scripts/artidoc/src/document-id-injection-key.ts | +22 | −0 | Go to diff View file |
A | plugins/artidoc/scripts/artidoc/src/helpers/inject-internal-id.ts | +31 | −0 | Go to diff View file |
M | plugins/artidoc/scripts/artidoc/src/helpers/rest-querier.ts | +41 | −1 | Go to diff View file |
M | plugins/artidoc/scripts/artidoc/src/helpers/stubs/InjectSectionsStoreStub.ts | +11 | −2 | Go to diff View file |
M | plugins/artidoc/scripts/artidoc/src/index.ts | +2 | −0 | Go to diff View file |
M | plugins/artidoc/scripts/artidoc/src/stores/useSectionsStore.test.ts | +267 | −40 | Go to diff View file |
M | plugins/artidoc/scripts/artidoc/src/stores/useSectionsStore.ts | +74 | −13 | Go to diff View file |