diff options
author | mfluharty <mfluharty@gitlab.com> | 2019-06-04 19:48:04 +0300 |
---|---|---|
committer | mfluharty <mfluharty@gitlab.com> | 2019-06-06 17:46:45 +0300 |
commit | c3130068e89c1a02f0b9cd4c3e25a33bc91b59df (patch) | |
tree | c14d4113fdcba9b6a67cea888129cd12a2ab7d9b /app/views/ci | |
parent | 5290d89276630997e186d88ba81c115e309ba627 (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')
-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 |