mirror of
https://github.com/R0m1k3/Presencia.git
synced 2026-10-11 17:27:42 +02:00
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:
1 file changed
+8
@@ -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'); }
|
||||
|
||||
Reference in new issue
Block a user