]> BookStack Code Mirror - bookstack/blobdiff - resources/views/comments/comment.blade.php
Comments: Started archive display, created mode for tree node
[bookstack] / resources / views / comments / comment.blade.php
index 58e057140a0e07f13e84cd5fc41c765a3bc0a06e..fe61bf1a4f6b0e6e4d771962d3175cb5d436abd1 100644 (file)
@@ -38,7 +38,7 @@
                     @if(userCan('comment-create-all'))
                         <button refs="page-comment@reply-button" type="button" class="text-button text-muted hover-underline text-small p-xs">@icon('reply') {{ trans('common.reply') }}</button>
                     @endif
-                    @if(userCan('comment-update', $comment) || userCan('comment-delete', $comment))
+                    @if(!$comment->parent_id && (userCan('comment-update', $comment) || userCan('comment-delete', $comment)))
                         <button refs="page-comment@archive-button"
                                 type="button"
                                 data-is-archived="{{ $comment->archived ? 'true' : 'false' }}"