From 0fd2fd652a18ccceb725ce2f8f7683ad6ad3c224 Mon Sep 17 00:00:00 2001 From: Kushal Pandya <kushal@gitlab.com> Date: Tue, 21 Mar 2017 21:23:17 +0530 Subject: [PATCH] Update property names for tags --- .../projects/protected_tags/_create_protected_tag.html.haml | 4 ++-- app/views/projects/protected_tags/_dropdown.html.haml | 2 +- app/views/projects/protected_tags/_index.html.haml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/projects/protected_tags/_create_protected_tag.html.haml b/app/views/projects/protected_tags/_create_protected_tag.html.haml index 6ffe7b4c24f..110c24ac9e4 100644 --- a/app/views/projects/protected_tags/_create_protected_tag.html.haml +++ b/app/views/projects/protected_tags/_create_protected_tag.html.haml @@ -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 diff --git a/app/views/projects/protected_tags/_dropdown.html.haml b/app/views/projects/protected_tags/_dropdown.html.haml index 3da153bc521..74851519077 100644 --- a/app/views/projects/protected_tags/_dropdown.html.haml +++ b/app/views/projects/protected_tags/_dropdown.html.haml @@ -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 diff --git a/app/views/projects/protected_tags/_index.html.haml b/app/views/projects/protected_tags/_index.html.haml index 3a1da1202e9..0965bf75eae 100644 --- a/app/views/projects/protected_tags/_index.html.haml +++ b/app/views/projects/protected_tags/_index.html.haml @@ -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 -- GitLab