Show labels widget on issuable sidebar if project has only group labels
This commit is contained in:
parent
8522ef44bf
commit
ae88126d13
|
@ -2,7 +2,7 @@ module IssuableActions
|
||||||
extend ActiveSupport::Concern
|
extend ActiveSupport::Concern
|
||||||
|
|
||||||
included do
|
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_destroy_issuable!, only: :destroy
|
||||||
before_action :authorize_admin_issuable!, only: :bulk_update
|
before_action :authorize_admin_issuable!, only: :bulk_update
|
||||||
end
|
end
|
||||||
|
|
|
@ -107,7 +107,7 @@
|
||||||
= dropdown_content do
|
= dropdown_content do
|
||||||
.js-due-date-calendar
|
.js-due-date-calendar
|
||||||
|
|
||||||
- if issuable.project.labels.any?
|
- if @labels && @labels.any?
|
||||||
- selected_labels = issuable.labels
|
- selected_labels = issuable.labels
|
||||||
.block.labels
|
.block.labels
|
||||||
.sidebar-collapsed-icon.js-sidebar-labels-tooltip{ title: issuable_labels_tooltip(issuable.labels_array), data: { placement: "left", container: "body" } }
|
.sidebar-collapsed-icon.js-sidebar-labels-tooltip{ title: issuable_labels_tooltip(issuable.labels_array), data: { placement: "left", container: "body" } }
|
||||||
|
|
Loading…
Reference in New Issue