Skip to content

Commit

Permalink
fix: fix delete modal wording
Browse files Browse the repository at this point in the history
  • Loading branch information
InsaneZein committed Nov 13, 2024
1 parent 358632e commit d21baf8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion src/Messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -2224,9 +2224,19 @@ export default defineMessages({
description: 'Action column option to remove user from group',
defaultMessage: 'Remove from user groups',
},
deleteCustomRoleModalHeader: {
id: 'deleteCustomRoleModalHeader',
description: 'Modal header text for deleting custom role',
defaultMessage: 'Delete role?',
},
deleteCustomRoleModalBody: {
id: 'deleteCustomRoleModalBody',
description: 'Modal body text for deleting custom role',
defaultMessage: 'Deleting the <strong>{name}</strong> may remove groups in your organization',
defaultMessage: 'Deleting the <strong>{name}</strong> may remove acess to certain user groups in your organization',
},
deleteRoleConfirm: {
id: 'deleteRoleConfirm',
description: 'confirm button for deleting role',
defaultMessage: 'Delete role',
},
});
4 changes: 2 additions & 2 deletions src/smart-components/role/RolesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ const RolesTable: React.FunctionComponent<RolesTableProps> = ({ selectedRole })
<WarningModal
ouiaId={`${ouiaId}-remove-role-modal`}
isOpen={isDeleteModalOpen}
title={intl.formatMessage(messages.deleteUserModalTitle)}
confirmButtonLabel={intl.formatMessage(messages.remove)}
title={intl.formatMessage(messages.deleteCustomRoleModalHeader)}
confirmButtonLabel={intl.formatMessage(messages.deleteRoleConfirm)}
confirmButtonVariant={ButtonVariant.danger}
withCheckbox
checkboxLabel={intl.formatMessage(messages.understandActionIrreversible)}
Expand Down

0 comments on commit d21baf8

Please sign in to comment.