summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2018-04-30 12:16:31 -0500
committerClement Ho <ClemMakesApps@gmail.com>2018-04-30 12:16:31 -0500
commit6cd98a6fa8c9fe7d19ec82b2bb2003b3384b8169 (patch)
treeadb21442ec62b38d2521769fca61d67eaa1af541
parent2272e95acd5b398a3ccfa12de85c40d285b679d8 (diff)
downloadgitlab-ce-6cd98a6fa8c9fe7d19ec82b2bb2003b3384b8169.tar.gz
Use hide instead of hidden
-rw-r--r--app/assets/javascripts/behaviors/secret_values.js4
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);