summaryrefslogtreecommitdiff
path: root/app/views/shared/projects/protected_branches/_update_protected_branch.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/shared/projects/protected_branches/_update_protected_branch.html.haml')
-rw-r--r--app/views/shared/projects/protected_branches/_update_protected_branch.html.haml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/shared/projects/protected_branches/_update_protected_branch.html.haml b/app/views/shared/projects/protected_branches/_update_protected_branch.html.haml
index d1b32df7139..75d6d88fbc3 100644
--- a/app/views/shared/projects/protected_branches/_update_protected_branch.html.haml
+++ b/app/views/shared/projects/protected_branches/_update_protected_branch.html.haml
@@ -33,3 +33,6 @@
%p.small
= _('Members of %{group} can also push to this branch: %{branch}') % { group: (group_push_access_levels.size > 1 ? 'these groups' : 'this group'), branch: group_push_access_levels.map(&:humanize).to_sentence }
+- if ::Feature.enabled?(:allow_force_push_to_protected_branches, @project)
+ %td
+ = render "shared/buttons/project_feature_toggle", is_checked: protected_branch.allow_force_push, label: s_("ProtectedBranch|Toggle allow force push"), class_list: "js-force-push-toggle project-feature-toggle", data: { qa_selector: 'force_push_toggle_button', qa_branch_name: protected_branch.name }