diff --git a/frontend_nuxt/components/CommentEditor.vue b/frontend_nuxt/components/CommentEditor.vue index 307b944b1..13b822c6e 100644 --- a/frontend_nuxt/components/CommentEditor.vue +++ b/frontend_nuxt/components/CommentEditor.vue @@ -47,6 +47,10 @@ export default { showLoginOverlay: { type: Boolean, default: false + }, + parentUserName: { + type: String, + default: '' } }, components: { LoginOverlay }, @@ -71,7 +75,7 @@ export default { if (!vditorInstance.value || isDisabled.value) return const value = vditorInstance.value.getValue() console.debug('CommentEditor submit', value) - emit('submit', value, () => { + emit('submit', props.parentUserName, value, () => { if (!vditorInstance.value) return vditorInstance.value.setValue('') text.value = '' diff --git a/frontend_nuxt/components/CommentItem.vue b/frontend_nuxt/components/CommentItem.vue index d2ee2d415..e154b141d 100644 --- a/frontend_nuxt/components/CommentItem.vue +++ b/frontend_nuxt/components/CommentItem.vue @@ -42,9 +42,9 @@ -
+
+ :show-login-overlay="!loggedIn" :parent-user-name="comment.userName" />
@@ -65,7 +65,7 @@