Skip to content
Snippets Groups Projects
Commit 6f0274a1 authored by Moreau Elise's avatar Moreau Elise
Browse files

add modal on button to delete user's account

parent 0085a6c5
No related branches found
No related tags found
No related merge requests found
window.onload = function () {
let usersToAdd = [];
function removeUser(id) {
usersToAdd = usersToAdd.filter(user => user.id !== id);
refreshUsersToAdd();
......@@ -29,12 +29,16 @@ window.onload = function () {
usersToAdd = [];
$('#users-add-form').empty();
}
$('#add-user-button').on('click', () => {
$('#modal_add_user').modal('show');
resetUsersToAdd();
});
$('#delete_user_button').on('click', () => {
$('#modal_delete_user').modal('show');
});
$('.ui.search')
.search({
apiSettings: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment