summaryrefslogtreecommitdiffstats
path: root/apps/comments
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-01-10 02:04:18 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2024-01-12 14:39:35 +0100
commitcc59a4dfea265e78d7fead8d6cc7c25553a8bc82 (patch)
tree0d0e987c1c9a847bcc2d14b74eec193a526c417e /apps/comments
parent48628b90690d8204e7875d561b8115c526cc9176 (diff)
downloadnextcloud-server-cc59a4dfea265e78d7fead8d6cc7c25553a8bc82.tar.gz
nextcloud-server-cc59a4dfea265e78d7fead8d6cc7c25553a8bc82.zip
enh(comments): Add always visible labels for comment input
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/comments')
-rw-r--r--apps/comments/src/components/Comment.vue4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/comments/src/components/Comment.vue b/apps/comments/src/components/Comment.vue
index 6caf154ce98..912eeb28748 100644
--- a/apps/comments/src/components/Comment.vue
+++ b/apps/comments/src/components/Comment.vue
@@ -76,6 +76,8 @@
<NcRichContenteditable ref="editor"
:auto-complete="autoComplete"
:contenteditable="!loading"
+ :label="editor ? t('comments', 'New comment') : t('comments', 'Edit comment')"
+ :placeholder="t('comments', 'Write a comment …')"
:value="localMessage"
:user-data="userData"
aria-describedby="tab-comments__editor-description"
@@ -189,6 +191,7 @@ export default {
// Only change data locally and update the original
// parent data when the request is sent and resolved
localMessage: '',
+ submitted: false,
}
},
@@ -249,6 +252,7 @@ export default {
*/
updateLocalMessage(message) {
this.localMessage = message.toString()
+ this.submitted = false
},
/**