enh(comments): Add always visible labels for comment input

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2024-01-10 02:04:18 +01:00 committed by backportbot-nextcloud[bot]
parent b9540a8964
commit 14f690664d

View file

@ -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"
@ -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,
}
},
@ -245,6 +248,7 @@ export default {
*/
updateLocalMessage(message) {
this.localMessage = message.toString()
this.submitted = false
},
/**