projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix height for columns - change style for buttons, sort options for items in menu
[arvados.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 cff30fb166c9c60363ec1212b030ade0db586052..a33f78d12d5c922005eb70db8c08f5ee243d5d60 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
@@
-13,6
+13,8
@@
import { openCollectionCopyDialog } from "~/store/collections/collection-copy-ac
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 { 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";
export const collectionActionSet: ContextMenuActionSet = [[
{
export const collectionActionSet: ContextMenuActionSet = [[
{
@@
-25,15
+27,10
@@
export const collectionActionSet: ContextMenuActionSet = [[
{
icon: ShareIcon,
name: "Share",
{
icon: ShareIcon,
name: "Share",
- execute: (dispatch,
resource
) => {
- // add code
+ execute: (dispatch,
{ 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) => {
@@
-48,37
+45,45
@@
export const collectionActionSet: 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",
execute: (dispatch, resource) => {
dispatch<any>(openCollectionCopyDialog(resource));
}
{
icon: CopyIcon,
name: "Copy to project",
execute: (dispatch, resource) => {
dispatch<any>(openCollectionCopyDialog(resource));
}
+
},
{
icon: DetailsIcon,
name: "View details",
},
{
icon: DetailsIcon,
name: "View details",
- execute: dispatch => dispatch(detailsPanelActions.TOGGLE_DETAILS_PANEL())
- },
- {
- icon: ProvenanceGraphIcon,
- name: "Provenance graph",
- execute: (dispatch, resource) => {
- // add code
+ execute: dispatch => {
+ dispatch(detailsPanelActions.TOGGLE_DETAILS_PANEL());
}
},
}
},
+ // {
+ // icon: ProvenanceGraphIcon,
+ // name: "Provenance graph",
+ // execute: (dispatch, resource) => {
+ // // add code
+ // }
+ // },
{
icon: AdvancedIcon,
name: "Advanced",
execute: (dispatch, resource) => {
{
icon: AdvancedIcon,
name: "Advanced",
execute: (dispatch, resource) => {
- // add code
- }
- },
- {
- icon: RemoveIcon,
- name: "Remove",
- execute: (dispatch, resource) => {
- // add code
+ dispatch<any>(openAdvancedTabDialog(resource.uuid));
}
}
}
}
+ // {
+ // icon: RemoveIcon,
+ // name: "Remove",
+ // execute: (dispatch, resource) => {
+ // // add code
+ // }
+ // }
]];
]];