Skip to content

Commit

Permalink
[Roles] Fix wording for updating roles toast to match button text
Browse files Browse the repository at this point in the history
  • Loading branch information
SiddharthMantri committed Sep 30, 2024
1 parent 49661a3 commit db4adff
Showing 1 changed file with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -718,12 +718,21 @@ export const EditRolePage: FunctionComponent<Props> = ({
),
});
} else {
notifications.toasts.addSuccess(
i18n.translate(
'xpack.security.management.editRole.roleSuccessfullySavedNotificationMessage',
{ defaultMessage: 'Saved role' }
)
);
if (isEditingExistingRole) {
notifications.toasts.addSuccess(
i18n.translate(
'xpack.security.management.editRole.roleSuccessfullyUpdatedNotificationMessage',
{ defaultMessage: 'Updated role' }
)
);
} else {
notifications.toasts.addSuccess(
i18n.translate(
'xpack.security.management.editRole.roleSuccessfullySavedNotificationMessage',
{ defaultMessage: 'Saved role' }
)
);
}
}

backToRoleList();
Expand Down

0 comments on commit db4adff

Please sign in to comment.