mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
enh(comments): Add always visible labels for comment input
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
48628b9069
commit
cc59a4dfea
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue