diff --git a/js/src/components/Comment/CommentTree.vue b/js/src/components/Comment/CommentTree.vue index d845ebc54..2e6b1db65 100644 --- a/js/src/components/Comment/CommentTree.vue +++ b/js/src/components/Comment/CommentTree.vue @@ -39,7 +39,7 @@ - {{ + {{ $t("The organiser has chosen to close comments.") }}

-

+
{{ $t("No comments yet") }}
@@ -350,11 +350,15 @@ export default class CommentTree extends Vue { } get isAbleToComment(): boolean { - if (this.currentActor?.id) { + if (this.isConnected) { return this.areCommentsClosed || this.isEventOrganiser; } return false; } + + get isConnected(): boolean { + return this.currentActor?.id != undefined; + } }