Commit 6f0274a1 authored by Moreau Elise's avatar Moreau Elise
Browse files

add modal on button to delete user's account

parent 0085a6c5
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: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment