Fix lock icon not being shown when locking account in profile settings (#14190)
This commit is contained in:
parent
35cedc922c
commit
4babf5b8b5
3 changed files with 11 additions and 5 deletions
|
@ -207,10 +207,12 @@ function main() {
|
|||
delegate(document, '#account_locked', 'change', ({ target }) => {
|
||||
const lock = document.querySelector('.card .display-name i');
|
||||
|
||||
if (target.checked) {
|
||||
lock.style.display = 'inline';
|
||||
} else {
|
||||
lock.style.display = 'none';
|
||||
if (lock) {
|
||||
if (target.checked) {
|
||||
delete lock.dataset.hidden;
|
||||
} else {
|
||||
lock.dataset.hidden = 'true';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -76,6 +76,10 @@
|
|||
margin-left: 15px;
|
||||
text-align: left;
|
||||
|
||||
i[data-hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-size: 15px;
|
||||
color: $primary-text-color;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue