diff options
author | mfluharty <mfluharty@gitlab.com> | 2019-06-04 17:48:04 +0100 |
---|---|---|
committer | mfluharty <mfluharty@gitlab.com> | 2019-06-06 15:46:45 +0100 |
commit | c3130068e89c1a02f0b9cd4c3e25a33bc91b59df (patch) | |
tree | c14d4113fdcba9b6a67cea888129cd12a2ab7d9b /app/views | |
parent | 5290d89276630997e186d88ba81c115e309ba627 (diff) | |
download | gitlab-ce-c3130068e89c1a02f0b9cd4c3e25a33bc91b59df.tar.gz |
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')
-rw-r--r-- | app/views/ci/variables/_index.html.haml | 2 |
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 |