[ARVADOS-WORKBENCH2] created: 1.3.1-362-g3d64d43a

Git user git at public.curoverse.com
Tue Feb 19 09:26:20 EST 2019


        at  3d64d43a3d610994955431ed71548dec2306dd79 (commit)


commit 3d64d43a3d610994955431ed71548dec2306dd79
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date:   Tue Feb 19 15:26:05 2019 +0100

    fixed-removing-selected-files
    
    Feature #14856
    
    Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>

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 11cdd622..b75de94a 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<any>(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.',

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list