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.bindAll(this.dialog.element);
const passInput = this.getBoundElement('passInput');
this.onChanged('passVisibility', () => {
if (passInput.style.display === 'none') {
passInput.style.display = 'block';
} else {
passInput.style.display = 'none';
}
});
if (passInput) {
this.onChanged('passVisibility', () => {
if (passInput.style.display === 'none') {
passInput.style.display = 'block';
} else {
passInput.style.display = 'none';
}
});
}
}
onUserDelete() {