18123: Use project update dialog for renaming group
[arvados-workbench2.git] / src / views-components / context-menu / action-sets / group-action-set.ts
index 3fbec27edb6665882754dbc67bd02d355972a1e3..f2c9b92fc05dcb9fcb1a3e590ec0cd9dccddcc44 100644 (file)
@@ -5,13 +5,14 @@
 import { ContextMenuActionSet } from "views-components/context-menu/context-menu-action-set";
 import { RenameIcon, AdvancedIcon, RemoveIcon, AttributesIcon } from "components/icon/icon";
 import { openAdvancedTabDialog } from "store/advanced-tab/advanced-tab";
-import { openRenameGroupDialog, openGroupAttributes, openRemoveGroupDialog } from "store/groups-panel/groups-panel-actions";
+import { openGroupAttributes, openRemoveGroupDialog } from "store/groups-panel/groups-panel-actions";
+import { openProjectUpdateDialog } from "store/projects/project-update-actions";
 
 export const groupActionSet: ContextMenuActionSet = [[{
     name: "Rename",
     icon: RenameIcon,
-    execute: (dispatch, { uuid }) => {
-        dispatch<any>(openRenameGroupDialog(uuid));
+    execute: (dispatch, resource) => {
+        dispatch<any>(openProjectUpdateDialog(resource));
     }
 }, {
     name: "Attributes",