From 3d64d43a3d610994955431ed71548dec2306dd79 Mon Sep 17 00:00:00 2001 From: Pawel Kowalczyk Date: Tue, 19 Feb 2019 15:26:05 +0100 Subject: [PATCH] fixed-removing-selected-files Feature #14856 Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk --- .../collection-panel-files-actions.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts b/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts index 11cdd6226f..b75de94a7e 100644 --- a/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts +++ b/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts @@ -39,9 +39,13 @@ export const removeCollectionFiles = (filePaths: string[]) => if (currentCollection) { dispatch(snackbarActions.OPEN_SNACKBAR({ message: 'Removing...' })); try { - await services.collectionService.deleteFiles('', filePaths); + await services.collectionService.deleteFiles(currentCollection.uuid, filePaths); dispatch(loadCollectionFiles(currentCollection.uuid)); - dispatch(snackbarActions.OPEN_SNACKBAR({ message: 'Removed.', hideDuration: 2000 })); + dispatch(snackbarActions.OPEN_SNACKBAR({ + message: 'Removed.', + hideDuration: 2000, + kind: SnackbarKind.SUCCESS + })); } catch (e) { dispatch(snackbarActions.OPEN_SNACKBAR({ message: 'Could not remove file.', -- 2.30.2