diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 00:07:37 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 00:07:37 +0300 |
commit | 1f6abbe6fa099f6d3d7629cfee85049020b54b33 (patch) | |
tree | d294f2d89c0edc61b3d23d196851757ce2842220 /app/assets/javascripts/notes | |
parent | 6b5d8b17e28741bccf31029633cc5af7ceab1486 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/notes')
-rw-r--r-- | app/assets/javascripts/notes/components/comment_form.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/notes/components/comment_form.vue b/app/assets/javascripts/notes/components/comment_form.vue index 4e03bed8737..8ef071034e5 100644 --- a/app/assets/javascripts/notes/components/comment_form.vue +++ b/app/assets/javascripts/notes/components/comment_form.vue @@ -111,7 +111,7 @@ export default { return this.getNoteableData.current_user.can_create_note; }, canSetConfidential() { - return this.getNoteableData.current_user.can_update; + return this.getNoteableData.current_user.can_update && (this.isIssue || this.isEpic); }, issueActionButtonTitle() { const openOrClose = this.isOpen ? 'close' : 'reopen'; @@ -166,6 +166,9 @@ export default { isIssue() { return constants.NOTEABLE_TYPE_MAPPING[this.noteableType] === constants.ISSUE_NOTEABLE_TYPE; }, + isEpic() { + return constants.NOTEABLE_TYPE_MAPPING[this.noteableType] === constants.EPIC_NOTEABLE_TYPE; + }, trackingLabel() { return slugifyWithUnderscore(`${this.commentButtonTitle} button`); }, |