stable

Clone or download

Read-only

Convert "New document" into typescript

part of request #18402 Convert document plugin into typescript No functional changes, you can click on "+ New document" everywhere (global button, quick look button and overview button) the modal will open and will enable you to create new document. When folder have custom properties, they are prefilled in modal. It also replace replace the EventBus[0] calls by vuex store [0] https://v3.vuejs.org/guide/migration/events-api.html#overview Change-Id: Ic61aa31b1b732ed44137ba1944c0538c495b396d

Modified Files

Name
M plugins/document/package.json +1 −0 Go to diff View file
M plugins/document/pnpm-lock.yaml +6 −0 Go to diff View file
R plugins/document/scripts/document/components/Folder/ActionsButton/NewItemButton.test.js Go to diff View file
M plugins/document/scripts/document/components/Folder/ActionsButton/NewItemButton.vue +15 −12 Go to diff View file
R plugins/document/scripts/document/components/Folder/DropDown/NewDocument.test.js Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewDocument.vue +18 −17 Go to diff View file
M plugins/document/scripts/document/components/Folder/ModalNewItem/NewItemModal.test.js +3 −8 Go to diff View file
M plugins/document/scripts/document/components/Folder/ModalNewItem/NewItemModal.vue +3 −3 Go to diff View file
A plugins/document/scripts/document/helpers/emitter.ts +22 −0 Go to diff View file
M plugins/document/scripts/document/type.ts +7 −1 Go to diff View file