Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
6cd98a6f
Commit
6cd98a6f
authored
Apr 30, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use hide instead of hidden
parent
2272e95a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/behaviors/secret_values.js
app/assets/javascripts/behaviors/secret_values.js
+2
-2
No files found.
app/assets/javascripts/behaviors/secret_values.js
View file @
6cd98a6f
...
...
@@ -33,12 +33,12 @@ export default class SecretValues {
updateDom
(
isRevealed
)
{
const
values
=
this
.
container
.
querySelectorAll
(
this
.
valueSelector
);
values
.
forEach
((
value
)
=>
{
value
.
classList
.
toggle
(
'
hid
den
'
,
!
isRevealed
);
value
.
classList
.
toggle
(
'
hid
e
'
,
!
isRevealed
);
});
const
placeholders
=
this
.
container
.
querySelectorAll
(
this
.
placeholderSelector
);
placeholders
.
forEach
((
placeholder
)
=>
{
placeholder
.
classList
.
toggle
(
'
hid
den
'
,
isRevealed
);
placeholder
.
classList
.
toggle
(
'
hid
e
'
,
isRevealed
);
});
this
.
revealButton
.
textContent
=
isRevealed
?
n__
(
'
Hide value
'
,
'
Hide values
'
,
values
.
length
)
:
n__
(
'
Reveal value
'
,
'
Reveal values
'
,
values
.
length
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment