feat(#117): agent-count toasts and persistent error toast dismiss
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -135,7 +135,7 @@ export default function UsersTab() {
|
||||
setNewProvider('local');
|
||||
},
|
||||
onError: () => {
|
||||
toast({ title: 'Failed to create user', variant: 'error' });
|
||||
toast({ title: 'Failed to create user', variant: 'error', duration: 86_400_000 });
|
||||
},
|
||||
},
|
||||
);
|
||||
@@ -154,7 +154,7 @@ export default function UsersTab() {
|
||||
setDeleteTarget(null);
|
||||
},
|
||||
onError: () => {
|
||||
toast({ title: 'Failed to delete user', variant: 'error' });
|
||||
toast({ title: 'Failed to delete user', variant: 'error', duration: 86_400_000 });
|
||||
setDeleteTarget(null);
|
||||
},
|
||||
});
|
||||
@@ -175,7 +175,7 @@ export default function UsersTab() {
|
||||
setNewPw('');
|
||||
},
|
||||
onError: () => {
|
||||
toast({ title: 'Failed to update password', variant: 'error' });
|
||||
toast({ title: 'Failed to update password', variant: 'error', duration: 86_400_000 });
|
||||
},
|
||||
},
|
||||
);
|
||||
@@ -333,6 +333,7 @@ export default function UsersTab() {
|
||||
toast({
|
||||
title: 'Failed to update name',
|
||||
variant: 'error',
|
||||
duration: 86_400_000,
|
||||
}),
|
||||
},
|
||||
)
|
||||
@@ -451,6 +452,7 @@ export default function UsersTab() {
|
||||
toast({
|
||||
title: 'Failed to remove group',
|
||||
variant: 'error',
|
||||
duration: 86_400_000,
|
||||
}),
|
||||
},
|
||||
);
|
||||
@@ -474,6 +476,7 @@ export default function UsersTab() {
|
||||
toast({
|
||||
title: 'Failed to add group',
|
||||
variant: 'error',
|
||||
duration: 86_400_000,
|
||||
}),
|
||||
},
|
||||
);
|
||||
@@ -506,6 +509,7 @@ export default function UsersTab() {
|
||||
toast({
|
||||
title: 'Failed to remove role',
|
||||
variant: 'error',
|
||||
duration: 86_400_000,
|
||||
}),
|
||||
},
|
||||
);
|
||||
@@ -542,6 +546,7 @@ export default function UsersTab() {
|
||||
toast({
|
||||
title: 'Failed to assign role',
|
||||
variant: 'error',
|
||||
duration: 86_400_000,
|
||||
}),
|
||||
},
|
||||
);
|
||||
@@ -583,6 +588,7 @@ export default function UsersTab() {
|
||||
toast({
|
||||
title: 'Failed to remove group',
|
||||
variant: 'error',
|
||||
duration: 86_400_000,
|
||||
}),
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user