summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-10 22:30:18 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-19 14:58:25 -0200
commit1fd84700874ed29a7852b0f090dbaffd86cb8d00 (patch)
treebad82fcc064d42172348867537f8eeb2ace27d6d
parent11d786e7da9f767a877bbdd4fd482c0d0c4cd747 (diff)
downloadgitlab-ce-1fd84700874ed29a7852b0f090dbaffd86cb8d00.tar.gz
Hide prioritized labels only when no labels are available to project
-rw-r--r--app/views/projects/labels/index.html.haml2
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 c1ec9cabc40..f135bf6f6b4 100644
--- a/app/views/projects/labels/index.html.haml
+++ b/app/views/projects/labels/index.html.haml
@@ -16,7 +16,7 @@
.labels
- if can?(current_user, :admin_label, @project)
-# Only show it in the first page
- - hide = @project.labels.empty? || (params[:page].present? && params[:page] != '1')
+ - hide = @available_labels.empty? || (params[:page].present? && params[:page] != '1')
.prioritized-labels{ class: ('hide' if hide) }
%h5 Prioritized Labels
%ul.content-list.manage-labels-list.js-prioritized-labels{ "data-url" => set_priorities_namespace_project_labels_path(@project.namespace, @project) }