diff options
author | Douwe Maan <douwe@selenight.nl> | 2018-04-02 21:40:11 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-04-10 16:46:20 +0300 |
commit | bdd7600de71c9490be4ba4ddc27999b490b7cf8a (patch) | |
tree | 23d9617013d3ee6c1b4a058f69bea74b6c5cd407 /app/assets | |
parent | 8272ec9a7683863c43d217c97bdf7bf165cb3cf2 (diff) |
Add ability checks in views where they were previously missing
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/notes/components/comment_form.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/notes/components/comment_form.vue b/app/assets/javascripts/notes/components/comment_form.vue index 648fa6ff804..396a675b4ac 100644 --- a/app/assets/javascripts/notes/components/comment_form.vue +++ b/app/assets/javascripts/notes/components/comment_form.vue @@ -317,10 +317,10 @@ Please check your network connection and try again.`; <note-signed-out-widget v-if="!isLoggedIn" /> <discussion-locked-widget issuable-type="issue" - v-else-if="!canCreateNote" + v-else-if="isLocked(getNoteableData) && !canCreateNote" /> <ul - v-else + v-else-if="canCreateNote" class="notes notes-form timeline"> <li class="timeline-entry"> <div class="timeline-entry-inner"> |