Fix pri toggle conditional

This commit is contained in:
Luke Bennett 2018-04-25 12:49:01 +01:00
parent e5ae43e23f
commit c792501440
No known key found for this signature in database
GPG Key ID: A738E9C68D3BF31A
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
%li.inline
.label-badge.label-badge-gray= label.model_name.human.capitalize
- if can?(current_user, :admin_label, label)
- if subject.is_a?(Project)
- if @project.present?
%li.inline.js-toggle-priority{ data: { url: remove_priority_project_label_path(@project, label),
dom_id: dom_id(label), type: label.type } }
%button.label-action.add-priority.btn.btn-transparent.has-tooltip{ title: 'Prioritize', type: 'button', :'data-placement' => 'top' }