Merge pull request #1 from R0m1k3/claude/pensive-volta-g8lgnn

Afficher l'utilisateur tout juste créé même si un filtre était actif
This commit is contained in:
LogiFlow authored and GitHub committed 2026-10-09 09:05:31 +02:00
commit da875afb73
1 file changed
+8
+8
View File
@@ -837,6 +837,14 @@
if (edit) await api(`/users/${user.id}`, { method: 'PUT', body });
else await api('/users', { method: 'POST', body });
closeDialog();
if (!edit) {
// The company filter and search are shared with "Plannings": a leftover
// value would hide the account just created, as if it had not been saved.
state.filterCompany = 'all';
state.search = '';
$('us-co').value = 'all';
$('us-q').value = '';
}
toast('Utilisateur enregistré');
await refreshUsers();
} catch (err) { toast(err.message, 'error'); }