X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/a5f5a2ec8ae05ec2ad41dda0cd736dafe6cc669d..0fab1ce0739811ff8bc02488d32aa2ad184c7b1e:/src/store/collections/collection-upload-actions.ts diff --git a/src/store/collections/collection-upload-actions.ts b/src/store/collections/collection-upload-actions.ts index 8f85ea18..0ca681b9 100644 --- a/src/store/collections/collection-upload-actions.ts +++ b/src/store/collections/collection-upload-actions.ts @@ -14,12 +14,14 @@ import { progressIndicatorActions } from "store/progress-indicator/progress-indi import { collectionPanelFilesAction } from 'store/collection-panel/collection-panel-files/collection-panel-files-actions'; import { createTree } from 'models/tree'; import { loadCollectionPanel } from '../collection-panel/collection-panel-action'; +import * as WorkbenchActions from 'store/workbench/workbench-actions'; export const uploadCollectionFiles = (collectionUuid: string) => - async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { + async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { dispatch(fileUploaderActions.START_UPLOAD()); const files = getState().fileUploader.map(file => file.file); await services.collectionService.uploadFiles(collectionUuid, files, handleUploadProgress(dispatch)); + dispatch(WorkbenchActions.loadCollection(collectionUuid)); dispatch(fileUploaderActions.CLEAR_UPLOAD()); };