X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fb1ecf2421f8aac07d733d3bb56bb39312274f8c..c5fa0c4eed19a9d0c163ea1727189970533f0203:/src/store/file-uploader/file-uploader-actions.ts diff --git a/src/store/file-uploader/file-uploader-actions.ts b/src/store/file-uploader/file-uploader-actions.ts index 906263fe14..f4a30a239d 100644 --- a/src/store/file-uploader/file-uploader-actions.ts +++ b/src/store/file-uploader/file-uploader-actions.ts @@ -3,6 +3,8 @@ // SPDX-License-Identifier: AGPL-3.0 import { unionize, ofType, UnionOf } from "~/common/unionize"; +import { Dispatch } from "redux"; +import { RootState } from '~/store/store'; export interface UploadFile { id: number; @@ -18,8 +20,13 @@ export interface UploadFile { export const fileUploaderActions = unionize({ CLEAR_UPLOAD: ofType(), SET_UPLOAD_FILES: ofType(), + UPDATE_UPLOAD_FILES: ofType(), SET_UPLOAD_PROGRESS: ofType<{ fileId: number, loaded: number, total: number, currentTime: number }>(), START_UPLOAD: ofType(), }); export type FileUploaderAction = UnionOf; + +export const getFileUploaderState = () => (dispatch: Dispatch, getState: () => RootState) => { + return getState().fileUploader; +}; \ No newline at end of file