Merge Dev in Staging
This commit is contained in:
commit
c199e2867b
@ -173,9 +173,15 @@ export default function UserInformations(props: IProps) {
|
|||||||
const liveVote = await LiveVotes.getInstance().post(vote);
|
const liveVote = await LiveVotes.getInstance().post(vote);
|
||||||
|
|
||||||
if (liveVote.appointment.votes?.length === 3) {
|
if (liveVote.appointment.votes?.length === 3) {
|
||||||
|
if(superAdminModalType === "add") {
|
||||||
Toasts.getInstance().open({
|
Toasts.getInstance().open({
|
||||||
title: `Le titre de super-administrateur a été attribué à ${userSelected.contact?.first_name} ${userSelected.contact?.last_name} `,
|
title: `Le titre de super-administrateur a été attribué à ${userSelected.contact?.first_name} ${userSelected.contact?.last_name} `,
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
Toasts.getInstance().open({
|
||||||
|
title: `Le titre de super-administrateur a été retiré à ${userSelected.contact?.first_name} ${userSelected.contact?.last_name} `,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
await getUser();
|
await getUser();
|
||||||
setIsSuperAdminModalOpened(false);
|
setIsSuperAdminModalOpened(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user