Do not allow delete comment with child

This commit is contained in:
ArenMg 2021-06-16 13:33:54 +03:00
parent 73bee4fbe3
commit c9bbc2e405
1 changed files with 4 additions and 1 deletions

View File

@ -48,7 +48,10 @@
</button>
<button
v-if="$root.user.is('ADMIN') || $root.user.is('MODO')"
v-if="
($root.user.is('ADMIN') || $root.user.is('MODO')) &&
comment.comments.length < 1
"
title="Supprimer le commentaire"
@click="deleteComment(comment.id)"
>