diff options
author | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-10-31 20:12:22 +0100 |
---|---|---|
committer | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-11-29 15:04:59 +0100 |
commit | 943827b39ae1e3203736ec87724ec255505ae980 (patch) | |
tree | f889e435ea91cb51bec5ec276f3a3d23d5faa524 /app/assets/javascripts/ci_variable_list | |
parent | 5bf893952b82b4877790f5a7932b2f799393c686 (diff) | |
download | gitlab-ce-943827b39ae1e3203736ec87724ec255505ae980.tar.gz |
option to make variables protected by default
Diffstat (limited to 'app/assets/javascripts/ci_variable_list')
-rw-r--r-- | app/assets/javascripts/ci_variable_list/ci_variable_list.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/ci_variable_list/ci_variable_list.js b/app/assets/javascripts/ci_variable_list/ci_variable_list.js index ee0f7cda189..5b20fa141cd 100644 --- a/app/assets/javascripts/ci_variable_list/ci_variable_list.js +++ b/app/assets/javascripts/ci_variable_list/ci_variable_list.js @@ -36,7 +36,9 @@ export default class VariableList { }, protected: { selector: '.js-ci-variable-input-protected', - default: 'false', + // use `attr` instead of `data` as we don't want the value to be + // converted. we need the value as a string. + default: $('.js-ci-variable-input-protected').attr('data-default'), }, environment_scope: { // We can't use a `.js-` class here because |