MSP-3289 update user messages
This commit is contained in:
1 parent
b9f6de6968
commit
ab6e2dcb72
4 files changed
+7
-7
No files matched your search
@@ -71,7 +71,7 @@ const SessionsPage = () => {
|
||||
revokeSession(id)
|
||||
.unwrap()
|
||||
.then(() => message.success('Сессия успешно завершена'))
|
||||
.catch(() => message.info('Не удалось завершить сессию'))
|
||||
.catch(() => message.error('Не удалось завершить сессию'))
|
||||
}
|
||||
|
||||
if (isLoading || !data) {
|
||||
|
||||
@@ -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> несовместима с
|
||||
другими ролями
|
||||
|
||||
Reference in new issue
Block a user