Make toggle-comments button content dynamic

This commit is contained in:
Timothée Goguely 2024-12-18 18:21:59 +01:00
parent 6d5e9aa86c
commit 4b37d85483

View file

@ -14,7 +14,7 @@
data-icon="comment"
@click="isCommentsOpen = !isCommentsOpen"
>
<span class="sr-only">Afficher les commentaires</span>
<span class="sr-only">{{ isCommentsOpen ? 'Masquer' : 'Afficher' }} les commentaires</span>
</button>
<Comments v-if="isCommentsOpen" @show-draft-marker="showDraftMarker" />
</template>