Update property names for tags

This commit is contained in:
Kushal Pandya 2017-03-21 21:23:17 +05:30
parent 167b860008
commit 0fd2fd652a
3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
= form_for [@project.namespace.becomes(Namespace), @project, @protected_branch] do |f|
= form_for [@project.namespace.becomes(Namespace), @project, @protected_branch], html: { class: 'new_protected_tag' } do |f|
.panel.panel-default
.panel-heading
%h3.panel-title
@ -26,7 +26,7 @@
= dropdown_tag('Select',
options: { toggle_class: 'js-allowed-to-push wide',
dropdown_class: 'dropdown-menu-selectable',
data: { field_name: 'protected_branch[push_access_levels_attributes][0][access_level]', input_id: 'push_access_levels_attributes' }})
data: { field_name: 'protected_tag[push_access_levels_attributes][0][access_level]', input_id: 'push_access_levels_attributes' }})
.panel-footer
= f.submit 'Protect', class: 'btn-create btn', disabled: true

View File

@ -5,7 +5,7 @@
filter: true, dropdown_class: "dropdown-menu-selectable", placeholder: "Search protected tag",
footer_content: true,
data: { show_no: true, show_any: true, show_upcoming: true,
selected: params[:protected_branch_name],
selected: params[:protected_tag_name],
project_id: @project.try(:id) } }) do
%ul.dropdown-footer-list

View File

@ -1,5 +1,5 @@
- content_for :page_specific_javascripts do
= page_specific_javascript_bundle_tag('protected_branches')
= page_specific_javascript_bundle_tag('protected_tags')
.row.prepend-top-default.append-bottom-default
.col-lg-3