Merge branch '21128-toolbar-context-menu'
[arvados-workbench2.git] / src / views-components / context-menu / action-sets / api-client-authorization-action-set.ts
index 0d3bebb12efc98d852ec8d80dc37942be5e73049..8e75d22f6714d97853f2d7061aa9167dc793a072 100644 (file)
@@ -16,27 +16,21 @@ export const apiClientAuthorizationActionSet: ContextMenuActionSet = [
             name: "Attributes",
             icon: AttributesIcon,
             execute: (dispatch, resources) => {
-                for (const resource of [...resources]) {
-                    dispatch<any>(openApiClientAuthorizationAttributesDialog(resource.uuid));
-                }
+                    dispatch<any>(openApiClientAuthorizationAttributesDialog(resources[0].uuid));
             },
         },
         {
             name: "API Details",
             icon: AdvancedIcon,
             execute: (dispatch, resources) => {
-                for (const resource of [...resources]) {
-                    dispatch<any>(openAdvancedTabDialog(resource.uuid));
-                }
+                    dispatch<any>(openAdvancedTabDialog(resources[0].uuid));
             },
         },
         {
             name: "Remove",
             icon: RemoveIcon,
             execute: (dispatch, resources) => {
-                for (const resource of [...resources]) {
-                    dispatch<any>(openApiClientAuthorizationRemoveDialog(resource.uuid));
-                }
+                    dispatch<any>(openApiClientAuthorizationRemoveDialog(resources[0].uuid));
             },
         },
     ],