Show labels widget on issuable sidebar if project has only group labels

This commit is contained in:
Douglas Barbosa Alexandre 2016-09-26 18:06:46 -03:00
parent 8522ef44bf
commit ae88126d13
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ module IssuableActions
extend ActiveSupport::Concern
included do
before_action :labels, only: [:new, :edit]
before_action :labels, only: [:show, :new, :edit]
before_action :authorize_destroy_issuable!, only: :destroy
before_action :authorize_admin_issuable!, only: :bulk_update
end

View File

@ -107,7 +107,7 @@
= dropdown_content do
.js-due-date-calendar
- if issuable.project.labels.any?
- if @labels && @labels.any?
- selected_labels = issuable.labels
.block.labels
.sidebar-collapsed-icon.js-sidebar-labels-tooltip{ title: issuable_labels_tooltip(issuable.labels_array), data: { placement: "left", container: "body" } }