Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
enh(comments): Add always visible labels for comment input
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Jan 12, 2024
commit cc59a4dfea265e78d7fead8d6cc7c25553a8bc82
4 changes: 4 additions & 0 deletions apps/comments/src/components/Comment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
}
},

Expand Down Expand Up @@ -249,6 +252,7 @@ export default {
*/
updateLocalMessage(message) {
this.localMessage = message.toString()
this.submitted = false
},

/**
Expand Down