mirror of
https://github.com/ArenMg/aren.git
synced 2024-11-22 00:20: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>
|
||||||
|
|
||||||
<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"
|
title="Supprimer le commentaire"
|
||||||
@click="deleteComment(comment.id)"
|
@click="deleteComment(comment.id)"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue