summaryrefslogtreecommitdiff
path: root/app/views/shared/_label.html.haml
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-06-06 18:18:21 +0100
committerLuke Bennett <lukeeeebennettplus@gmail.com>2018-06-06 18:18:21 +0100
commita30b51fa9400d0fee06532fa99a1fa14e694b2c4 (patch)
tree2dda2d334bce6ef3c3e72c378ecc37799674f606 /app/views/shared/_label.html.haml
parentd680b678bd39085000fe8e3c097c16859228aced (diff)
downloadgitlab-ce-a30b51fa9400d0fee06532fa99a1fa14e694b2c4.tar.gz
perf improvement
Diffstat (limited to 'app/views/shared/_label.html.haml')
-rw-r--r--app/views/shared/_label.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/_label.html.haml b/app/views/shared/_label.html.haml
index 4725951b22d..c34d63ba5c3 100644
--- a/app/views/shared/_label.html.haml
+++ b/app/views/shared/_label.html.haml
@@ -2,7 +2,7 @@
- status = label_subscription_status(label, @project).inquiry if current_user
- subject = local_assigns[:subject]
- use_label_priority = local_assigns.fetch(:use_label_priority, false)
-- force_priority = local_assigns.fetch(:force_priority, use_label_priority ? label.priority? : false)
+- force_priority = local_assigns.fetch(:force_priority, use_label_priority ? label.priority.present? : false)
- toggle_subscription_path = toggle_subscription_label_path(label, @project) if current_user
- show_label_merge_requests_link = show_label_issuables_link?(label, :merge_requests, project: @project)
- show_label_issues_link = show_label_issuables_link?(label, :issues, project: @project)