diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-30 12:16:31 -0500 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-30 12:16:31 -0500 |
commit | 6cd98a6fa8c9fe7d19ec82b2bb2003b3384b8169 (patch) | |
tree | adb21442ec62b38d2521769fca61d67eaa1af541 | |
parent | 2272e95acd5b398a3ccfa12de85c40d285b679d8 (diff) | |
download | gitlab-ce-6cd98a6fa8c9fe7d19ec82b2bb2003b3384b8169.tar.gz |
Use hide instead of hidden
-rw-r--r-- | app/assets/javascripts/behaviors/secret_values.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/behaviors/secret_values.js b/app/assets/javascripts/behaviors/secret_values.js index 8a7babf6870..0d6e0dbefcc 100644 --- a/app/assets/javascripts/behaviors/secret_values.js +++ b/app/assets/javascripts/behaviors/secret_values.js @@ -33,12 +33,12 @@ export default class SecretValues { updateDom(isRevealed) { const values = this.container.querySelectorAll(this.valueSelector); values.forEach((value) => { - value.classList.toggle('hidden', !isRevealed); + value.classList.toggle('hide', !isRevealed); }); const placeholders = this.container.querySelectorAll(this.placeholderSelector); placeholders.forEach((placeholder) => { - placeholder.classList.toggle('hidden', isRevealed); + placeholder.classList.toggle('hide', isRevealed); }); this.revealButton.textContent = isRevealed ? n__('Hide value', 'Hide values', values.length) : n__('Reveal value', 'Reveal values', values.length); |