Skip to content

Commit

Permalink
Merge pull request #42745 from nextcloud/backport/42676/stable28
Browse files Browse the repository at this point in the history
[stable28] enh(comments): Add visual labels for editor
  • Loading branch information
ShGKme authored Jan 12, 2024
2 parents b9540a8 + 3f4bc1f commit 0b515f7
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions apps/comments/src/components/Comment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,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 @@ -187,6 +189,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 @@ -245,6 +248,7 @@ export default {
*/
updateLocalMessage(message) {
this.localMessage = message.toString()
this.submitted = false
},
/**
Expand Down
4 changes: 2 additions & 2 deletions dist/6826-6826.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/6826-6826.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/comments-comments-app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/comments-comments-app.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/comments-comments-tab.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/comments-comments-tab.js.map

Large diffs are not rendered by default.

0 comments on commit 0b515f7

Please sign in to comment.