Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormfluharty <mfluharty@gitlab.com>2019-06-04 19:48:04 +0300
committermfluharty <mfluharty@gitlab.com>2019-06-06 17:46:45 +0300
commitc3130068e89c1a02f0b9cd4c3e25a33bc91b59df (patch)
treec14d4113fdcba9b6a67cea888129cd12a2ab7d9b /app/views/ci/variables/_index.html.haml
parent5290d89276630997e186d88ba81c115e309ba627 (diff)
Use exposed regex for frontend maskable check
Pass string value in through haml template data attribute Evaluate it into a regex when initiating variable list Use it to determine whether to show the maskability warning
Diffstat (limited to 'app/views/ci/variables/_index.html.haml')
-rw-r--r--app/views/ci/variables/_index.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/ci/variables/_index.html.haml b/app/views/ci/variables/_index.html.haml
index 464b9faf282..94102b4dcd0 100644
--- a/app/views/ci/variables/_index.html.haml
+++ b/app/views/ci/variables/_index.html.haml
@@ -6,7 +6,7 @@
= s_('Environment variables are configured by your administrator to be %{link_start}protected%{link_end} by default').html_safe % { link_start: link_start, link_end: '</a>'.html_safe }
.row
- .col-lg-12.js-ci-variable-list-section{ data: { save_endpoint: save_endpoint } }
+ .col-lg-12.js-ci-variable-list-section{ data: { save_endpoint: save_endpoint, maskable_regex: ci_variable_maskable_regex } }
.hide.alert.alert-danger.js-ci-variable-error-box
%ul.ci-variable-list