projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
16118: Restricts UI elements when a collection is read-only.
[arvados-workbench2.git]
/
src
/
views-components
/
context-menu
/
action-sets
/
project-action-set.ts
diff --git
a/src/views-components/context-menu/action-sets/project-action-set.ts
b/src/views-components/context-menu/action-sets/project-action-set.ts
index 7171c0af0285e9c201b699e6b3a24f6023e58fa1..32616fce9731a987eff015e5d30c03bc45aa0153 100644
(file)
--- a/
src/views-components/context-menu/action-sets/project-action-set.ts
+++ b/
src/views-components/context-menu/action-sets/project-action-set.ts
@@
-3,7
+3,7
@@
// SPDX-License-Identifier: AGPL-3.0
import { ContextMenuActionSet } from "../context-menu-action-set";
// SPDX-License-Identifier: AGPL-3.0
import { ContextMenuActionSet } from "../context-menu-action-set";
-import { NewProjectIcon, RenameIcon,
CopyIcon,
MoveToIcon, DetailsIcon, AdvancedIcon } from '~/components/icon/icon';
+import { NewProjectIcon, RenameIcon, MoveToIcon, DetailsIcon, AdvancedIcon } from '~/components/icon/icon';
import { ToggleFavoriteAction } from "../actions/favorite-action";
import { toggleFavorite } from "~/store/favorites/favorites-actions";
import { favoritePanelActions } from "~/store/favorite-panel/favorite-panel-action";
import { ToggleFavoriteAction } from "../actions/favorite-action";
import { toggleFavorite } from "~/store/favorites/favorites-actions";
import { favoritePanelActions } from "~/store/favorite-panel/favorite-panel-action";
@@
-12,8
+12,10
@@
import { openProjectCreateDialog } from '~/store/projects/project-create-actions
import { openProjectUpdateDialog } from '~/store/projects/project-update-actions';
import { ToggleTrashAction } from "~/views-components/context-menu/actions/trash-action";
import { toggleProjectTrashed } from "~/store/trash/trash-actions";
import { openProjectUpdateDialog } from '~/store/projects/project-update-actions';
import { ToggleTrashAction } from "~/views-components/context-menu/actions/trash-action";
import { toggleProjectTrashed } from "~/store/trash/trash-actions";
-import { detailsPanelActions } from '~/store/details-panel/details-panel-action';
+import { ShareIcon } from '~/components/icon/icon';
+import { openSharingDialog } from "~/store/sharing-dialog/sharing-dialog-actions";
import { openAdvancedTabDialog } from "~/store/advanced-tab/advanced-tab";
import { openAdvancedTabDialog } from "~/store/advanced-tab/advanced-tab";
+import { toggleDetailsPanel } from '~/store/details-panel/details-panel-action';
export const projectActionSet: ContextMenuActionSet = [[
{
export const projectActionSet: ContextMenuActionSet = [[
{
@@
-30,6
+32,13
@@
export const projectActionSet: ContextMenuActionSet = [[
dispatch<any>(openProjectUpdateDialog(resource));
}
},
dispatch<any>(openProjectUpdateDialog(resource));
}
},
+ {
+ icon: ShareIcon,
+ name: "Share",
+ execute: (dispatch, { uuid }) => {
+ dispatch<any>(openSharingDialog(uuid));
+ }
+ },
{
component: ToggleFavoriteAction,
execute: (dispatch, resource) => {
{
component: ToggleFavoriteAction,
execute: (dispatch, resource) => {
@@
-38,12
+47,6
@@
export const projectActionSet: ContextMenuActionSet = [[
});
}
},
});
}
},
- {
- component: ToggleTrashAction,
- execute: (dispatch, resource) => {
- dispatch<any>(toggleProjectTrashed(resource.uuid, resource.ownerUuid, resource.isTrashed!!));
- }
- },
{
icon: MoveToIcon,
name: "Move to",
{
icon: MoveToIcon,
name: "Move to",
@@
-51,18
+54,18
@@
export const projectActionSet: ContextMenuActionSet = [[
dispatch<any>(openMoveProjectDialog(resource));
}
},
dispatch<any>(openMoveProjectDialog(resource));
}
},
- {
- icon: CopyIcon,
- name: "Copy to project",
- execute: (dispatch, resource) => {
- // add code
- }
- },
+
//
{
+
//
icon: CopyIcon,
+
//
name: "Copy to project",
+
//
execute: (dispatch, resource) => {
+
//
// add code
+
//
}
+
//
},
{
icon: DetailsIcon,
name: "View details",
execute: dispatch => {
{
icon: DetailsIcon,
name: "View details",
execute: dispatch => {
- dispatch
(detailsPanelActions.TOGGLE_DETAILS_PANEL
());
+ dispatch
<any>(toggleDetailsPanel
());
}
},
{
}
},
{
@@
-72,4
+75,10
@@
export const projectActionSet: ContextMenuActionSet = [[
dispatch<any>(openAdvancedTabDialog(resource.uuid));
}
},
dispatch<any>(openAdvancedTabDialog(resource.uuid));
}
},
+ {
+ component: ToggleTrashAction,
+ execute: (dispatch, resource) => {
+ dispatch<any>(toggleProjectTrashed(resource.uuid, resource.ownerUuid, resource.isTrashed!!));
+ }
+ },
]];
]];