From 28860f9a4712dcb769a52dd445d0ecad6bc39133 Mon Sep 17 00:00:00 2001 From: Tina Yip <98424339+tiyiprh@users.noreply.github.com> Date: Wed, 17 Jul 2024 08:42:05 -0400 Subject: [PATCH] [UXD][AAP-25468] AWX -Updates to Roles section buttons and actions (#2749) --- frontend/awx/access/roles/hooks/useAwxRoleRowActions.tsx | 1 + frontend/awx/access/roles/hooks/useAwxRoleToolbarActions.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/awx/access/roles/hooks/useAwxRoleRowActions.tsx b/frontend/awx/access/roles/hooks/useAwxRoleRowActions.tsx index a31f62dd2d..1caf7c13bd 100644 --- a/frontend/awx/access/roles/hooks/useAwxRoleRowActions.tsx +++ b/frontend/awx/access/roles/hooks/useAwxRoleRowActions.tsx @@ -62,6 +62,7 @@ export function useAwxRoleRowActions(onComplete: (roles: AwxRbacRole[]) => void) selection: PageActionSelection.Single, icon: PencilAltIcon, isPinned: true, + variant: ButtonVariant.primary, label: t('Edit role'), isDisabled: (role) => role.managed diff --git a/frontend/awx/access/roles/hooks/useAwxRoleToolbarActions.tsx b/frontend/awx/access/roles/hooks/useAwxRoleToolbarActions.tsx index 14ffdb08d0..a1ec442bb2 100644 --- a/frontend/awx/access/roles/hooks/useAwxRoleToolbarActions.tsx +++ b/frontend/awx/access/roles/hooks/useAwxRoleToolbarActions.tsx @@ -40,7 +40,7 @@ export function useAwxRoleToolbarActions(onComplete: (roles: AwxRbacRole[]) => v type: PageActionType.Button, selection: PageActionSelection.Multiple, icon: TrashIcon, - label: t('Delete selected roles'), + label: t('Delete roles'), onClick: deleteRoles, isDanger: true, },