mirror of
https://github.com/ArenMg/aren.git
synced 2024-11-14 04:30:52 +00:00
Do not allow delete comment with child
This commit is contained in:
parent
73bee4fbe3
commit
c9bbc2e405
1 changed files with 4 additions and 1 deletions
|
@ -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)"
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue