Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-12-30 18:09:15 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-30 18:09:15 +0300
commit969ce9efdb76556eb69bb4daefdcf0982333686a (patch)
tree90e04f434c9f68becbc48b7b08e63d758516a101 /app/assets/javascripts/notes
parentb0bfadd4860ccd031b8814df8463f794faa9a57c (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/notes')
-rw-r--r--app/assets/javascripts/notes/components/noteable_discussion.vue5
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>