projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Force window resize after open/close details panel because of material-ui issue
[arvados.git]
/
src
/
views-components
/
context-menu
/
action-sets
/
collection-files-action-set.ts
diff --git
a/src/views-components/context-menu/action-sets/collection-files-action-set.ts
b/src/views-components/context-menu/action-sets/collection-files-action-set.ts
index 653da011f7ed03153cfd3a360c192bf0b36d146c..6029eecd14688ac5f2762a270c8ef2c2fec1bf93 100644
(file)
--- a/
src/views-components/context-menu/action-sets/collection-files-action-set.ts
+++ b/
src/views-components/context-menu/action-sets/collection-files-action-set.ts
@@
-2,34
+2,31
@@
//
// SPDX-License-Identifier: AGPL-3.0
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuActionSet } from "
..
/context-menu-action-set";
+import { ContextMenuActionSet } from "
~/views-components/context-menu
/context-menu-action-set";
import { collectionPanelFilesAction, openMultipleFilesRemoveDialog } from "~/store/collection-panel/collection-panel-files/collection-panel-files-actions";
import { collectionPanelFilesAction, openMultipleFilesRemoveDialog } from "~/store/collection-panel/collection-panel-files/collection-panel-files-actions";
-import { createCollectionWithSelected } from "~/views-components/create-collection-dialog-with-selected/create-collection-dialog-with-selected";
-
+import { openCollectionPartialCopyDialog } from '~/store/collections/collection-partial-copy-actions';
export const collectionFilesActionSet: ContextMenuActionSet = [[{
name: "Select all",
export const collectionFilesActionSet: ContextMenuActionSet = [[{
name: "Select all",
- execute:
(dispatch)
=> {
+ execute:
dispatch
=> {
dispatch(collectionPanelFilesAction.SELECT_ALL_COLLECTION_FILES());
}
}, {
name: "Unselect all",
dispatch(collectionPanelFilesAction.SELECT_ALL_COLLECTION_FILES());
}
}, {
name: "Unselect all",
- execute:
(dispatch)
=> {
+ execute:
dispatch
=> {
dispatch(collectionPanelFilesAction.UNSELECT_ALL_COLLECTION_FILES());
}
}, {
name: "Remove selected",
dispatch(collectionPanelFilesAction.UNSELECT_ALL_COLLECTION_FILES());
}
}, {
name: "Remove selected",
- execute:
(dispatch)
=> {
+ execute:
dispatch
=> {
dispatch(openMultipleFilesRemoveDialog());
}
}, {
name: "Download selected",
dispatch(openMultipleFilesRemoveDialog());
}
}, {
name: "Download selected",
- execute: (dispatch, resource) => {
- return;
- }
+ execute: () => { return; }
}, {
name: "Create a new collection with selected",
}, {
name: "Create a new collection with selected",
- execute:
(dispatch) => {
- dispatch<any>(
createCollectionWithSelected
());
+ execute:
dispatch => {
+ dispatch<any>(
openCollectionPartialCopyDialog
());
}
}]];
}
}]];