stable

Clone or download

Read-only

Document: Convert action helpers into typescript

part of request #18402 Convert document plugin into typescript No functional changes: - documents should still load, breadcrumb does not fail - you can upload files/version/files over empty items without error - if you set a limit on document, upload fail, the error modal is properly displayed Change-Id: Iadb1f41e450b927e939298971b19d4ae19aa4b8d

Modified Files

Name
M plugins/document/scripts/document/helpers/type-check-helper.ts +15 −2 Go to diff View file
R plugins/document/scripts/document/store/actions-helpers/adjust-item-to-content-after-item-creation-in-folder.test.js Go to diff View file
R plugins/document/scripts/document/store/actions-helpers/adjust-item-to-content-after-item-creation-in-folder.js Go to diff View file
R plugins/document/scripts/document/store/actions-helpers/flag-item-as-created.js Go to diff View file
A plugins/document/scripts/document/store/actions-helpers/item-retriever.test.ts +51 −0 Go to diff View file
A plugins/document/scripts/document/store/actions-helpers/item-retriever.ts +42 −0 Go to diff View file
R plugins/document/scripts/document/store/actions-helpers/load-ascendant-hierarchy.test.js Go to diff View file
R plugins/document/scripts/document/store/actions-helpers/load-ascendant-hierarchy.js Go to diff View file
R plugins/document/scripts/document/store/actions-helpers/load-folder-content.test.js Go to diff View file
R plugins/document/scripts/document/store/actions-helpers/load-folder-content.js Go to diff View file
R plugins/document/scripts/document/store/actions-helpers/upload-file.js Go to diff View file
M plugins/document/scripts/document/store/actions.js +5 −9 Go to diff View file
M plugins/document/scripts/document/store/actions.test.js +3 −3 Go to diff View file
M plugins/document/scripts/document/store/clipboard/clipboard-actions.js +1 −1 Go to diff View file
M plugins/document/scripts/document/store/clipboard/clipboard-actions.test.js +1 −1 Go to diff View file
M plugins/document/scripts/document/store/permissions/permissions-actions.test.ts +1 −1 Go to diff View file
M plugins/document/scripts/document/type.ts +15 −2 Go to diff View file