diff options
Diffstat (limited to 'app/assets/javascripts/notes')
-rw-r--r-- | app/assets/javascripts/notes/components/noteable_discussion.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/notes/components/noteable_discussion.vue b/app/assets/javascripts/notes/components/noteable_discussion.vue index 1f31720ff40..3462ee72dd3 100644 --- a/app/assets/javascripts/notes/components/noteable_discussion.vue +++ b/app/assets/javascripts/notes/components/noteable_discussion.vue @@ -89,6 +89,9 @@ export default { currentUser() { return this.getUserData; }, + isLoggedIn() { + return Boolean(gon.current_user_id); + }, autosaveKey() { return getDiscussionReplyKey(this.firstNote.noteable_type, this.discussion.id); }, @@ -314,7 +317,7 @@ export default { @cancelForm="cancelReplyForm" /> </div> - <note-signed-out-widget v-if="!userCanReply" /> + <note-signed-out-widget v-if="!isLoggedIn" /> </div> </template> </discussion-notes> |