diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-10-01 18:45:48 +0300 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-10-01 18:45:48 +0300 |
commit | 00ee7a9f27d3d00936127957eb3c99f803d3e880 (patch) | |
tree | e3a2631a7e68c92a751eeb991d8a15dd7d0a3826 /app/assets/javascripts/notes | |
parent | fe96bd416c0556cac5da7a178264340798a74fbf (diff) |
FE review changes app code
Diffstat (limited to 'app/assets/javascripts/notes')
-rw-r--r-- | app/assets/javascripts/notes/components/issue_comment_form.vue | 4 | ||||
-rw-r--r-- | app/assets/javascripts/notes/components/issue_discussion_locked_widget.vue | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/notes/components/issue_comment_form.vue b/app/assets/javascripts/notes/components/issue_comment_form.vue index 3682c95f6eb..715027c6fbc 100644 --- a/app/assets/javascripts/notes/components/issue_comment_form.vue +++ b/app/assets/javascripts/notes/components/issue_comment_form.vue @@ -58,7 +58,7 @@ isIssueOpen() { return this.issueState === constants.OPENED || this.issueState === constants.REOPENED; }, - canCreate() { + canCreateNote() { return this.getIssueData.current_user.can_create_note; }, issueActionButtonTitle() { @@ -241,7 +241,7 @@ <template> <div> <issue-note-signed-out-widget v-if="!isLoggedIn" /> - <issue-discussion-locked-widget v-else-if="!canCreate" /> + <issue-discussion-locked-widget v-else-if="!canCreateNote" /> <ul v-else class="notes notes-form timeline"> diff --git a/app/assets/javascripts/notes/components/issue_discussion_locked_widget.vue b/app/assets/javascripts/notes/components/issue_discussion_locked_widget.vue index f0429b82aaa..e73ec2aaf71 100644 --- a/app/assets/javascripts/notes/components/issue_discussion_locked_widget.vue +++ b/app/assets/javascripts/notes/components/issue_discussion_locked_widget.vue @@ -1,7 +1,7 @@ <script> export default { computed: { - icon() { + lockIcon() { return gl.utils.spriteIcon('lock'); }, }, @@ -12,7 +12,7 @@ <template> <div class="disabled-comment text-center"> <span class="issuable-note-warning"> - <span class="icon" v-html="icon"></span> + <span class="icon" v-html="lockIcon"></span> <span>This issue is locked. Only <b>project members</b> can comment.</span> </span> </div> |