clean typescript

This commit is contained in:
Kenneth SOARES
2025-02-17 17:51:42 +01:00
committed by Sli
parent 2bed89aaba
commit b1db52d2b6
3 changed files with 24 additions and 62 deletions

View File

@ -14,7 +14,7 @@
{% endblock %}
{% block content %}
<main x-data="user_pictures">
<main x-data="user_pictures({ userId: {{ object.id }} })">
{% if user.id == object.id %}
{{ download_button() }}
{% endif %}
@ -49,11 +49,5 @@
{% endblock content %}
{% block script %}
{{ super() }}
<script>
window.addEventListener("DOMContentLoaded", () => {
loadPicturePage({ userId: {{ object.id }} });
})
</script>
{% endblock script %}