stable
Clone or download
Read-only
To reproduce: create a new section, fill the form and save. Now click on platform logo: you should not be asked for confirmation to leave the page. Having a boolean to count the number of open editors duplicates the information: we already have a bunch of editors, we can ask if they are open. That way there is less chance to miscalculate the number of open editors. Part of story #38288: add a new section Change-Id: I89162c5fd6b2fcef970b1235cbea2d78f4af0e52
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/artidoc/scripts/artidoc/src/composables/useSectionEditor.test.ts | +15 | −52 | Go to diff View file |
M | plugins/artidoc/scripts/artidoc/src/composables/useSectionEditor.ts | +8 | −20 | Go to diff View file |
A | plugins/artidoc/scripts/artidoc/src/composables/useSectionEditorsCollection.test.ts | +104 | −0 | Go to diff View file |
A | plugins/artidoc/scripts/artidoc/src/composables/useSectionEditorsCollection.ts | +59 | −0 | Go to diff View file |
M | plugins/artidoc/scripts/artidoc/src/helpers/on-before-unload.ts | +7 | −9 | Go to diff View file |
M | plugins/artidoc/scripts/artidoc/src/helpers/stubs/SectionEditorStub.ts | +37 | −50 | Go to diff View file |
M | plugins/artidoc/scripts/artidoc/src/index.ts | +9 | −0 | Go to diff View file |