diff options
author | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-05-24 13:29:00 +0100 |
---|---|---|
committer | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-05-24 13:29:00 +0100 |
commit | d400c94e601df96b0a58a7e1098ee04b3e7459f5 (patch) | |
tree | 6375697783606f5337fd6826ebcd1c8006575823 /app/views/projects/labels | |
parent | aba153a46d99977b6d05b0d6fb93a796cf551ae3 (diff) | |
download | gitlab-ce-d400c94e601df96b0a58a7e1098ee04b3e7459f5.tar.gz |
Fix accuracy of 'prioritized label' badge, when given different contexts
Diffstat (limited to 'app/views/projects/labels')
-rw-r--r-- | app/views/projects/labels/index.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/labels/index.html.haml b/app/views/projects/labels/index.html.haml index 725fd8107e8..4d423827832 100644 --- a/app/views/projects/labels/index.html.haml +++ b/app/views/projects/labels/index.html.haml @@ -28,7 +28,7 @@ #js-priority-labels-empty-state.priority-labels-empty-state{ class: "#{'hidden' unless @prioritized_labels.empty?}" } = render 'shared/empty_states/priority_labels' - if @prioritized_labels.present? - = render partial: 'shared/label', subject: @project, collection: @prioritized_labels, as: :label + = render partial: 'shared/label', subject: @project, collection: @prioritized_labels, as: :label, locals: { force_priority: true } - if @labels.present? .other-labels |