projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refs #14876 Copy-selected-into-the-colletion
[arvados-workbench2.git]
/
src
/
views-components
/
context-menu
/
action-sets
/
collection-action-set.ts
diff --git
a/src/views-components/context-menu/action-sets/collection-action-set.ts
b/src/views-components/context-menu/action-sets/collection-action-set.ts
index a33f78d12d5c922005eb70db8c08f5ee243d5d60..d6095d10ce4b2ce0a8b64aa56ab59e2aa0ebbe1b 100644
(file)
--- a/
src/views-components/context-menu/action-sets/collection-action-set.ts
+++ b/
src/views-components/context-menu/action-sets/collection-action-set.ts
@@
-15,6
+15,7
@@
import { toggleCollectionTrashed } from "~/store/trash/trash-actions";
import { detailsPanelActions } from '~/store/details-panel/details-panel-action';
import { openSharingDialog } from '~/store/sharing-dialog/sharing-dialog-actions';
import { openAdvancedTabDialog } from "~/store/advanced-tab/advanced-tab";
import { detailsPanelActions } from '~/store/details-panel/details-panel-action';
import { openSharingDialog } from '~/store/sharing-dialog/sharing-dialog-actions';
import { openAdvancedTabDialog } from "~/store/advanced-tab/advanced-tab";
+import { toggleDetailsPanel } from '~/store/details-panel/details-panel-action';
export const collectionActionSet: ContextMenuActionSet = [[
{
export const collectionActionSet: ContextMenuActionSet = [[
{
@@
-39,12
+40,6
@@
export const collectionActionSet: ContextMenuActionSet = [[
});
}
},
});
}
},
- {
- component: ToggleTrashAction,
- execute: (dispatch, resource) => {
- dispatch<any>(toggleCollectionTrashed(resource.uuid, resource.isTrashed!!));
- }
- },
{
icon: MoveToIcon,
name: "Move to",
{
icon: MoveToIcon,
name: "Move to",
@@
-62,7
+57,7
@@
export const collectionActionSet: ContextMenuActionSet = [[
icon: DetailsIcon,
name: "View details",
execute: dispatch => {
icon: DetailsIcon,
name: "View details",
execute: dispatch => {
- dispatch
(detailsPanelActions.TOGGLE_DETAILS_PANEL
());
+ dispatch
<any>(toggleDetailsPanel
());
}
},
// {
}
},
// {
@@
-78,7
+73,13
@@
export const collectionActionSet: ContextMenuActionSet = [[
execute: (dispatch, resource) => {
dispatch<any>(openAdvancedTabDialog(resource.uuid));
}
execute: (dispatch, resource) => {
dispatch<any>(openAdvancedTabDialog(resource.uuid));
}
- }
+ },
+ {
+ component: ToggleTrashAction,
+ execute: (dispatch, resource) => {
+ dispatch<any>(toggleCollectionTrashed(resource.uuid, resource.isTrashed!!));
+ }
+ },
// {
// icon: RemoveIcon,
// name: "Remove",
// {
// icon: RemoveIcon,
// name: "Remove",