1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 20:59:30 +00:00

Added click handlers for classUser remove icon

This commit is contained in:
2022-03-31 08:48:06 +00:00
parent 7f18d3ba85
commit a5c55955be

View File

@@ -14,3 +14,12 @@
{{/each}}
</div>
</section>
<script>
document.querySelectorAll('.classUser i').forEach(elem => {
elem.addEventListener('click', (e) => {
const userId = e.path[1].getAttribute('data-uid');
window.location.href = `${window.location.href}/${userId}/remove`;
});
});
</script>