1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00

Update messages in the dialogs for groups (#1208)

* Update messages

* Refinement
This commit is contained in:
sjaanus 2022-08-08 09:08:21 +03:00 committed by GitHub
parent c99470ec4e
commit c978ed6c6b
2 changed files with 11 additions and 12 deletions

View File

@ -47,23 +47,22 @@ export const RemoveGroupUser: FC<IRemoveGroupUserProps> = ({
}
};
const userName = user?.name || user?.username || user?.email;
return (
<Dialogue
open={open && Boolean(user)}
primaryButtonText="Remove"
primaryButtonText="Remove user"
secondaryButtonText="Cancel"
onClick={onRemoveClick}
onClose={() => {
setOpen(false);
}}
title="Remove user from group"
title="Remove user from group?"
>
<Typography>
Are you sure you wish to remove{' '}
<strong>{user?.name || user?.username || user?.email}</strong>{' '}
from <strong>{group.name}</strong>? Removing the user from this
group may also remove their access from projects this group is
assigned to.
Do you really want to remove <strong>{userName}</strong> from{' '}
<strong>{group.name}</strong>? <strong>{userName}</strong> will
lose all access rights granted by this group.
</Typography>
</Dialogue>
);

View File

@ -42,18 +42,18 @@ export const RemoveGroup: FC<IRemoveGroupProps> = ({
return (
<Dialogue
open={open}
primaryButtonText="Remove"
primaryButtonText="Delete group"
secondaryButtonText="Cancel"
onClick={onRemoveClick}
onClose={() => {
setOpen(false);
}}
title="Delete group"
title="Delete group?"
>
<Typography>
Are you sure you wish to delete <strong>{group.name}</strong>?
If this group is currently assigned to one or more projects then
users belonging to this group may lose access to those projects.
Do you really want to delete <strong>{group.name}</strong>?
Users who are granted access to projects only via this group
will lose access to those projects.
</Typography>
</Dialogue>
);