X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/f0a64666816383d2641d5fa7ea22019441ac4464..780b538596d1d66bab3e14b7399c04cc92a4dbe0:/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 5a82958d..a397bbd8 100644 --- a/src/store/file-uploader/file-uploader-actions.ts +++ b/src/store/file-uploader/file-uploader-actions.ts @@ -2,9 +2,9 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { unionize, ofType, UnionOf } from "~/common/unionize"; +import { unionize, ofType, UnionOf } from "common/unionize"; import { Dispatch } from "redux"; -import { RootState } from '~/store/store'; +import { RootState } from 'store/store'; export interface UploadFile { id: number; @@ -17,17 +17,14 @@ export interface UploadFile { currentTime: number; } -export interface FileWithId extends File { - id: number; -} - 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(), - DELETE_UPLOAD_FILE: ofType(), + DELETE_UPLOAD_FILE: ofType(), + CANCEL_FILES_UPLOAD: ofType(), }); export type FileUploaderAction = UnionOf;