MSP-3289 update user messages

This commit is contained in:
veselovnk committed 2024-05-20 13:22:52 +03:00
1 parent b9f6de6968
commit ab6e2dcb72
4 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ const SessionsPage = () => {
revokeSession(id)
.unwrap()
.then(() => message.success('Сессия успешно завершена'))
.catch(() => message.info('Не удалось завершить сессию'))
.catch(() => message.error('Не удалось завершить сессию'))
}
if (isLoading || !data) {
+1 -1
View File
@@ -78,7 +78,7 @@ const UserEditor = () => {
const exclusiveRole = findExclusiveRole(roles, value.roles as number[])
if (exclusiveRole) {
if (value.roles && value.roles.length > 1) {
message.info(
message.error(
<>
Роль: <strong>{exclusiveRole.name}</strong> несовместима с
другими ролями