mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 22:59:28 +00:00
Added click handlers for classUser remove icon
This commit is contained in:
@@ -14,3 +14,12 @@
|
|||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</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