mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-01 01:12:43 -05:00
fix: status dialog closes and shows two errors when saving fails (#35326)
When saving a user status was rejected, for example because an admin turned user status off, two error toasts appeared and the dialog closed, throwing away what was typed. Now only the server's error is shown and the dialog stays open so the text can be kept or changed. Fixes #35325
This commit is contained in:
1 parent
9aa4ea3787
commit
0b63d59ee5
1 file changed
+1
-3
@@ -41,11 +41,9 @@
|
||||
if (res) {
|
||||
toast.success($i18n.t('Status updated successfully'));
|
||||
onSave();
|
||||
} else {
|
||||
toast.error($i18n.t('Failed to update status'));
|
||||
show = false;
|
||||
}
|
||||
|
||||
show = false;
|
||||
loading = false;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user