Skip to content

Commit 0b515f7

Browse files
authored
Merge pull request #42745 from nextcloud/backport/42676/stable28
[stable28] enh(comments): Add visual labels for editor
2 parents b9540a8 + 3f4bc1f commit 0b515f7

7 files changed

Lines changed: 13 additions & 9 deletions

File tree

apps/comments/src/components/Comment.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@
7373
<NcRichContenteditable ref="editor"
7474
:auto-complete="autoComplete"
7575
:contenteditable="!loading"
76+
:label="editor ? t('comments', 'New comment') : t('comments', 'Edit comment')"
77+
:placeholder="t('comments', 'Write a comment …')"
7678
:value="localMessage"
7779
:user-data="userData"
7880
aria-describedby="tab-comments__editor-description"
@@ -187,6 +189,7 @@ export default {
187189
// Only change data locally and update the original
188190
// parent data when the request is sent and resolved
189191
localMessage: '',
192+
submitted: false,
190193
}
191194
},
192195
@@ -245,6 +248,7 @@ export default {
245248
*/
246249
updateLocalMessage(message) {
247250
this.localMessage = message.toString()
251+
this.submitted = false
248252
},
249253
250254
/**

dist/6826-6826.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/6826-6826.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/comments-comments-app.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/comments-comments-app.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/comments-comments-tab.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/comments-comments-tab.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)