projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '14528_table_view_and_actions'
[arvados-workbench2.git]
/
src
/
views-components
/
context-menu
/
action-sets
/
collection-resource-action-set.ts
diff --git
a/src/views-components/context-menu/action-sets/collection-resource-action-set.ts
b/src/views-components/context-menu/action-sets/collection-resource-action-set.ts
index 30ef4e795c74c20cec8aabd4351607c61080dadd..7730b1453812f730aab765254275298ab14e5bda 100644
(file)
--- a/
src/views-components/context-menu/action-sets/collection-resource-action-set.ts
+++ b/
src/views-components/context-menu/action-sets/collection-resource-action-set.ts
@@
-6,7
+6,7
@@
import { ContextMenuActionSet } from "../context-menu-action-set";
import { ToggleFavoriteAction } from "../actions/favorite-action";
import { ToggleTrashAction } from "~/views-components/context-menu/actions/trash-action";
import { toggleFavorite } from "~/store/favorites/favorites-actions";
import { ToggleFavoriteAction } from "../actions/favorite-action";
import { ToggleTrashAction } from "~/views-components/context-menu/actions/trash-action";
import { toggleFavorite } from "~/store/favorites/favorites-actions";
-import { RenameIcon, ShareIcon, MoveToIcon, CopyIcon, DetailsIcon, RemoveIcon
} from "~/components/icon/icon"
;
+import { RenameIcon, ShareIcon, MoveToIcon, CopyIcon, DetailsIcon, RemoveIcon
, AdvancedIcon } from '~/components/icon/icon'
;
import { openCollectionUpdateDialog } from "~/store/collections/collection-update-actions";
import { favoritePanelActions } from "~/store/favorite-panel/favorite-panel-action";
import { openMoveCollectionDialog } from '~/store/collections/collection-move-actions';
import { openCollectionUpdateDialog } from "~/store/collections/collection-update-actions";
import { favoritePanelActions } from "~/store/favorite-panel/favorite-panel-action";
import { openMoveCollectionDialog } from '~/store/collections/collection-move-actions';
@@
-14,6
+14,8
@@
import { openCollectionCopyDialog } from '~/store/collections/collection-copy-ac
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 { 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';
export const collectionResourceActionSet: ContextMenuActionSet = [[
{
export const collectionResourceActionSet: ContextMenuActionSet = [[
{
@@
-30,13
+32,6
@@
export const collectionResourceActionSet: ContextMenuActionSet = [[
dispatch<any>(openSharingDialog(uuid));
}
},
dispatch<any>(openSharingDialog(uuid));
}
},
- {
- icon: MoveToIcon,
- name: "Move to",
- execute: (dispatch, resource) => {
- dispatch<any>(openMoveCollectionDialog(resource));
- }
- },
{
component: ToggleFavoriteAction,
execute: (dispatch, resource) => {
{
component: ToggleFavoriteAction,
execute: (dispatch, resource) => {
@@
-51,6
+46,13
@@
export const collectionResourceActionSet: ContextMenuActionSet = [[
dispatch<any>(toggleCollectionTrashed(resource.uuid, resource.isTrashed!!));
}
},
dispatch<any>(toggleCollectionTrashed(resource.uuid, resource.isTrashed!!));
}
},
+ {
+ icon: MoveToIcon,
+ name: "Move to",
+ execute: (dispatch, resource) => {
+ dispatch<any>(openMoveCollectionDialog(resource));
+ }
+ },
{
icon: CopyIcon,
name: "Copy to project",
{
icon: CopyIcon,
name: "Copy to project",
@@
-62,14
+64,21
@@
export const collectionResourceActionSet: ContextMenuActionSet = [[
icon: DetailsIcon,
name: "View details",
execute: dispatch => {
icon: DetailsIcon,
name: "View details",
execute: dispatch => {
- dispatch
(detailsPanelActions.TOGGLE_DETAILS_PANEL
());
+ dispatch
<any>(toggleDetailsPanel
());
}
},
{
}
},
{
- icon:
Remove
Icon,
- name: "
Remove
",
+ icon:
Advanced
Icon,
+ name: "
Advanced
",
execute: (dispatch, resource) => {
execute: (dispatch, resource) => {
- // add code
+ dispatch<any>(openAdvancedTabDialog(resource.uuid));
}
}
}
}
+ // {
+ // icon: RemoveIcon,
+ // name: "Remove",
+ // execute: (dispatch, resource) => {
+ // // add code
+ // }
+ // }
]];
]];