From 4a8284fa6df572c4abe8d7ca5d309e504b1dde87 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sat, 13 Nov 2021 12:33:39 +0100 Subject: [PATCH] Improve comment tree Closes #862 Signed-off-by: Thomas Citharel --- js/src/components/Comment/CommentTree.vue | 45 ++++++++++++------- .../components/Comment/CommentTree.spec.ts | 4 +- .../__snapshots__/CommentTree.spec.ts.snap | 6 +-- 3 files changed, 36 insertions(+), 19 deletions(-) diff --git a/js/src/components/Comment/CommentTree.vue b/js/src/components/Comment/CommentTree.vue index 5e93a05e2..402e0008e 100644 --- a/js/src/components/Comment/CommentTree.vue +++ b/js/src/components/Comment/CommentTree.vue @@ -45,8 +45,8 @@ type="is-primary" class="comment-button-submit" icon-left="send" - :aria-label="$t('Post a comment')" - /> + >{{ $t("Send") }} @@ -63,7 +63,7 @@ @@ -77,9 +77,9 @@ @delete-comment="deleteComment" /> -
+ {{ $t("No comments yet") }} -
+ @@ -99,6 +99,7 @@ import { CURRENT_ACTOR_CLIENT } from "../../graphql/actor"; import { IPerson } from "../../types/actor"; import { IEvent } from "../../types/event.model"; import { ApolloCache, FetchResult, InMemoryCache } from "@apollo/client/core"; +import EmptyContent from "@/components/Utils/EmptyContent.vue"; @Component({ apollo: { @@ -119,6 +120,7 @@ import { ApolloCache, FetchResult, InMemoryCache } from "@apollo/client/core"; components: { Comment, IdentityPickerWrapper, + EmptyContent, editor: () => import(/* webpackChunkName: "editor" */ "@/components/Editor.vue"), }, @@ -364,21 +366,34 @@ export default class CommentTree extends Vue {