summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ci_variable_list/ci_variable_list.js
diff options
context:
space:
mode:
authorClement Ho <clemmakesapps@gmail.com>2018-02-15 22:16:37 +0000
committerClement Ho <clemmakesapps@gmail.com>2018-02-15 22:16:37 +0000
commit975dc69ec6a292fcdce380fc18940e735a3c2e6b (patch)
treebe16d4f3ca49bc9b84cdc24f891f0a10c911bdf8 /app/assets/javascripts/ci_variable_list/ci_variable_list.js
parent2203d10839b7e1b7d4daa96e4046fa882189e1bd (diff)
parentc6b2ff8a21470cb59e3512b2f27f1c926e17ae6f (diff)
downloadgitlab-ce-975dc69ec6a292fcdce380fc18940e735a3c2e6b.tar.gz
Merge branch '42929-hide-new-variable-values' into 'master'
Hide CI secret variable values on save Closes #42929 See merge request gitlab-org/gitlab-ce!17044
Diffstat (limited to 'app/assets/javascripts/ci_variable_list/ci_variable_list.js')
-rw-r--r--app/assets/javascripts/ci_variable_list/ci_variable_list.js4
1 files changed, 4 insertions, 0 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 3467e88119b..745f3404295 100644
--- a/app/assets/javascripts/ci_variable_list/ci_variable_list.js
+++ b/app/assets/javascripts/ci_variable_list/ci_variable_list.js
@@ -178,6 +178,10 @@ export default class VariableList {
this.$container.find('.js-row-remove-button').attr('disabled', !isEnabled);
}
+ hideValues() {
+ this.secretValues.updateDom(false);
+ }
+
getAllData() {
// Ignore the last empty row because we don't want to try persist
// a blank variable and run into validation problems.