mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 16:19:26 +00:00
Added click handlers for classUser remove icon
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user