From 968a96576337a1e6901b5fc1d9f6df2349b4b778 Mon Sep 17 00:00:00 2001
From: Thomas Citharel
Date: Thu, 25 Mar 2021 12:11:49 +0100
Subject: [PATCH] Handle empty comments
Signed-off-by: Thomas Citharel
---
js/src/components/Comment/CommentTree.vue | 25 +++++++++++++++++++----
js/src/i18n/en_US.json | 3 ++-
js/src/i18n/fr_FR.json | 3 ++-
lib/graphql/resolvers/comment.ex | 3 +++
4 files changed, 28 insertions(+), 6 deletions(-)
diff --git a/js/src/components/Comment/CommentTree.vue b/js/src/components/Comment/CommentTree.vue
index 363f517a8..d845ebc54 100644
--- a/js/src/components/Comment/CommentTree.vue
+++ b/js/src/components/Comment/CommentTree.vue
@@ -24,6 +24,9 @@
v-model="newComment.text"
/>
+
+ {{ $t("Comment text can't be empty") }}
+