projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refs #14855-downloading-has-different-behaviour-in-a-specific-environment
[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 2dc2a92e582bd34d34f9e7e676e47814a0735286..fe77b749226b4c44de2af1a32e2dad0f9650deb0 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
@@
-12,7
+12,6
@@
import { openMoveCollectionDialog } from '~/store/collections/collection-move-ac
import { openCollectionCopyDialog } from "~/store/collections/collection-copy-actions";
import { ToggleTrashAction } from "~/views-components/context-menu/actions/trash-action";
import { toggleCollectionTrashed } from "~/store/trash/trash-actions";
import { openCollectionCopyDialog } from "~/store/collections/collection-copy-actions";
import { ToggleTrashAction } from "~/views-components/context-menu/actions/trash-action";
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 { toggleDetailsPanel } 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';
@@
-40,12
+39,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",
@@
-76,10
+69,16
@@
export const collectionActionSet: ContextMenuActionSet = [[
{
icon: AdvancedIcon,
name: "Advanced",
{
icon: AdvancedIcon,
name: "Advanced",
- execute: (dispatch,
{ uuid, ownerUuid }
) => {
- dispatch<any>(openAdvancedTabDialog(
uuid, ownerU
uid));
+ execute: (dispatch,
resource
) => {
+ dispatch<any>(openAdvancedTabDialog(
resource.u
uid));
}
}
- }
+ },
+ {
+ component: ToggleTrashAction,
+ execute: (dispatch, resource) => {
+ dispatch<any>(toggleCollectionTrashed(resource.uuid, resource.isTrashed!!));
+ }
+ },
// {
// icon: RemoveIcon,
// name: "Remove",
// {
// icon: RemoveIcon,
// name: "Remove",