Commit fa5ce2c4 authored by Fatih Acet's avatar Fatih Acet

Merge branch 'feature-flag-permissions-protected-environments' into 'master'

Alert Users that Protected Environments affects Feature Flags

See merge request gitlab-org/gitlab-ee!12168
parents 5e59d0b5 a61d356b
.deploy_access_levels-container .deploy_access_levels-container
= dropdown_tag(s_('ProtectedEnvironment|Choose who is allowed to deploy'), = dropdown_tag(s_('ProtectedEnvironment|Select users'),
options: { toggle_class: 'js-allowed-to-deploy wide js-multiselect', options: { toggle_class: 'js-allowed-to-deploy wide js-multiselect',
dropdown_class: 'dropdown-menu-user dropdown-menu-selectable', dropdown_class: 'dropdown-menu-user dropdown-menu-selectable',
filter: true, filter: true,
......
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
.form-group .form-group
= f.label :deploy_access_levels_attributes, class: 'label-bold' do = f.label :deploy_access_levels_attributes, class: 'label-bold' do
= s_('ProtectedEnvironment|Allowed to deploy') = s_('ProtectedEnvironment|Allowed to deploy')
- if Feature.enabled?(:feature_flag_permissions, @project)
.text-muted.mb-2
= s_('ProtectedEnvironment|Select users to deploy and manage Feature Flag settings')
= render partial: 'projects/protected_environments/deploy_access_levels_dropdown', locals: { f: f } = render partial: 'projects/protected_environments/deploy_access_levels_dropdown', locals: { f: f }
.card-footer .card-footer
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
%button.btn.js-settings-toggle{ type: 'button' } %button.btn.js-settings-toggle{ type: 'button' }
= expanded ? _('Collapse') : _('Expand') = expanded ? _('Collapse') : _('Expand')
%p %p
= s_('ProtectedEnvironment|Protect Environments in order to restrict who can execute deployments.') = s_('ProtectedEnvironment|Protecting an environment restricts the users who can execute deployments.')
.settings-content .settings-content
= render 'projects/protected_environments/form' = render 'projects/protected_environments/form'
......
---
title: Alert users that protected environments affects feature flags
merge_request: 12168
author:
type: added
...@@ -9970,27 +9970,30 @@ msgstr "" ...@@ -9970,27 +9970,30 @@ msgstr ""
msgid "ProtectedEnvironment|Allowed to deploy" msgid "ProtectedEnvironment|Allowed to deploy"
msgstr "" msgstr ""
msgid "ProtectedEnvironment|Choose who is allowed to deploy"
msgstr ""
msgid "ProtectedEnvironment|Environment" msgid "ProtectedEnvironment|Environment"
msgstr "" msgstr ""
msgid "ProtectedEnvironment|Protect" msgid "ProtectedEnvironment|Protect"
msgstr "" msgstr ""
msgid "ProtectedEnvironment|Protect Environments in order to restrict who can execute deployments."
msgstr ""
msgid "ProtectedEnvironment|Protect an environment" msgid "ProtectedEnvironment|Protect an environment"
msgstr "" msgstr ""
msgid "ProtectedEnvironment|Protected Environment (%{protected_environments_count})" msgid "ProtectedEnvironment|Protected Environment (%{protected_environments_count})"
msgstr "" msgstr ""
msgid "ProtectedEnvironment|Protecting an environment restricts the users who can execute deployments."
msgstr ""
msgid "ProtectedEnvironment|Select an environment" msgid "ProtectedEnvironment|Select an environment"
msgstr "" msgstr ""
msgid "ProtectedEnvironment|Select users"
msgstr ""
msgid "ProtectedEnvironment|Select users to deploy and manage Feature Flag settings"
msgstr ""
msgid "ProtectedEnvironment|There are currently no protected environments, protect an environment with the form above." msgid "ProtectedEnvironment|There are currently no protected environments, protect an environment with the form above."
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment