Skip to content

Commit

Permalink
reset 'Add New User' form in UI after success
Browse files Browse the repository at this point in the history
  • Loading branch information
sebadob committed Sep 26, 2023
1 parent 0eda94d commit 2712139
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/src/components/admin/users/UserTileAddNew.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@
if (res.ok) {
formValues = {};
expandContainer = false;
formValues = {
email: '',
family_name: '',
given_name: '',
roles: [],
groups: [],
};
onSave();
} else {
let body = await res.json();
Expand Down

0 comments on commit 2712139

Please sign in to comment.