stable
Clone or download
No functional changes. Note: shouldRedirectToParentAfterDeletion was not mandatory before the switch to TS at 45c9f924297ebcd97d902dec20096013ccf9f57d We set it back to default false to avoid error in console. Note: handleErrors*() do not depends anymore on ActionContext<ErrorState, ErrorState> because those methods can be called from actions (ActionContext) and from vue componenents (Store with this.$store). In order to support both usage we now require to pass an object with `commit` method (shared with both ActionContext and Store). Note: in order to not loose our mind to convert the whole actions.js to TypeScript, an independant actions-typescript.ts has been extracted. It will be renamed after the conversion is finished. Part of request #18402: Convert document plugin into typescript Change-Id: Id8fcc25ea3d98a0a7329d8ba7402b8287173854c
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/document/scripts/document/api/rest-querier.ts | +1 | −1 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/DropDown/Delete/ModalConfirmDeletion.vue | +1 | −1 | Go to diff View file |
M | plugins/document/scripts/document/store/actions-helpers/handle-errors.ts | +24 | −19 | Go to diff View file |
A | plugins/document/scripts/document/store/actions-typescript.test.ts | +215 | −0 | Go to diff View file |
A | plugins/document/scripts/document/store/actions-typescript.ts | +72 | −0 | Go to diff View file |
M | plugins/document/scripts/document/store/actions.js | +2 | −38 | Go to diff View file |
M | plugins/document/scripts/document/store/actions.test.js | +1 | −211 | Go to diff View file |