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:
Classic298 authored and GitHub committed 2026-11-30 22:38:02 +04:00
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;
};