Add show_create param to toggle label creation option
This commit is contained in:
parent
d09114e4ed
commit
90c2ab02b5
1 changed files with 2 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
|||
- show_create = local_assigns.fetch(:show_create, true)
|
||||
- extra_options = local_assigns.fetch(:extra_options, true)
|
||||
- filter_submit = local_assigns.fetch(:filter_submit, true)
|
||||
- show_footer = local_assigns.fetch(:show_footer, true)
|
||||
|
@ -18,8 +19,7 @@
|
|||
= h(multi_label_name(params[:label_name], "Label"))
|
||||
= icon('chevron-down')
|
||||
.dropdown-menu.dropdown-select.dropdown-menu-paging.dropdown-menu-labels.dropdown-menu-selectable
|
||||
= render partial: "shared/issuable/label_page_default", locals: { title: "Filter by label" }
|
||||
- if can? current_user, :admin_label, @project and @project
|
||||
= render partial: "shared/issuable/label_page_default", locals: { title: "Filter by label", show_footer: show_footer }
|
||||
- if can? current_user, :admin_label, @project and @project and show_create
|
||||
= render partial: "shared/issuable/label_page_create"
|
||||
= dropdown_loading
|
||||
|
|
Loading…
Reference in a new issue