Fix pass change dialog

This commit is contained in:
Bartek Fabiszewski 2020-05-05 20:39:53 +02:00
parent 29649469d3
commit 806bcc036d
3 changed files with 11 additions and 9 deletions

2
js/dist/bundle.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -59,13 +59,15 @@ export default class UserDialogModel extends ViewModel {
this.dialog.show(); this.dialog.show();
this.bindAll(this.dialog.element); this.bindAll(this.dialog.element);
const passInput = this.getBoundElement('passInput'); const passInput = this.getBoundElement('passInput');
this.onChanged('passVisibility', () => { if (passInput) {
if (passInput.style.display === 'none') { this.onChanged('passVisibility', () => {
passInput.style.display = 'block'; if (passInput.style.display === 'none') {
} else { passInput.style.display = 'block';
passInput.style.display = 'none'; } else {
} passInput.style.display = 'none';
}); }
});
}
} }
onUserDelete() { onUserDelete() {