21448: expanded copy to oclipboard change Arvados-DCO-1.1-Signed-off-by: Lisa Knox...
[arvados.git] / services / workbench2 / src / views-components / context-menu / action-sets / group-action-set.ts
index 816583faa9f05e3c2d5291362dc12449b503dc92..2c7f164ab1fd672f0fb015b2ca125f985ab1c4aa 100644 (file)
@@ -2,7 +2,7 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { ContextMenuActionSet } from 'views-components/context-menu/context-menu-action-set';
+import { ContextMenuActionSet, ContextMenuActionNames } 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 { openGroupAttributes, openRemoveGroupDialog, openGroupUpdateDialog } from 'store/groups-panel/groups-panel-actions';
@@ -10,28 +10,28 @@ import { openGroupAttributes, openRemoveGroupDialog, openGroupUpdateDialog } fro
 export const groupActionSet: ContextMenuActionSet = [
     [
         {
-            name: 'Rename',
+            name: ContextMenuActionNames.RENAME,
             icon: RenameIcon,
             execute: (dispatch, resources) => {
                 dispatch<any>(openGroupUpdateDialog(resources[0]))
             },
         },
         {
-            name: 'Attributes',
+            name: ContextMenuActionNames.ATTRIBUTES,
             icon: AttributesIcon,
             execute: (dispatch, resources) => {
                 dispatch<any>(openGroupAttributes(resources[0].uuid))
             },
         },
         {
-            name: 'API Details',
+            name: ContextMenuActionNames.API_DETAILS,
             icon: AdvancedIcon,
             execute: (dispatch, resources) => {
                 dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
             },
         },
         {
-            name: 'Remove',
+            name: ContextMenuActionNames.REMOVE,
             icon: RemoveIcon,
             execute: (dispatch, resources) => {
                 dispatch<any>(openRemoveGroupDialog(resources[0].uuid));