Skip to content

Commit

Permalink
feat: now you can disable user via clicking individual icons
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeht committed Oct 13, 2022
1 parent e6ff9ed commit 8d0178c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/apps/ui/pages/admin/AdminUsers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ onUnmounted(() => document.body.removeChild(document.getElementById(`delete-a-us
// this code above required for back drop problem fixed when adding a new session header model
function clearAndDismissDeleteAUserModal() {
deleteAUserLoading.value = false;
checkAll.value = false;
checkAllRef.value.checked = false;
checkedUsers.value = [];
const modal = bootstrap.Modal.getOrCreateInstance(document.getElementById('delete-a-user'));
modal.hide();
}
Expand Down Expand Up @@ -407,7 +411,13 @@ function clearAndDismissDeleteAUserModal() {
<td>
<div class="d-flex gap-2">
<span role="button"><i class="bi bi-pencil-square"></i></span>
<span role="button"><i class="bi bi-trash"></i></span>
<span
@click="checkedUsers.push(u.id)"
data-bs-toggle="modal"
data-bs-target="#delete-a-user"
role="button"
><i class="bi bi-trash"></i
></span>
</div>
</td>
</tr>
Expand Down

0 comments on commit 8d0178c

Please sign in to comment.