diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-11 04:30:18 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-19 19:58:25 +0300 |
commit | 1fd84700874ed29a7852b0f090dbaffd86cb8d00 (patch) | |
tree | bad82fcc064d42172348867537f8eeb2ace27d6d /app/views | |
parent | 11d786e7da9f767a877bbdd4fd482c0d0c4cd747 (diff) |
Hide prioritized labels only when no labels are available to project
Diffstat (limited to 'app/views')
-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 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) } |