minor fix for togglePasswordInput

This commit is contained in:
ehuggett 2017-11-01 23:36:45 +00:00
parent a32638ed4c
commit fdafc1c59e
1 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,9 @@ module.exports = function(state, emit) {
function togglePasswordInput(e) {
const unlockInput = document.getElementById('unlock-input');
const boxChecked = e.target.checked;
document.querySelector('.setPassword').classList.toggle('hidden');
document
.querySelector('.setPassword')
.classList.toggle('hidden', !boxChecked);
document
.getElementById('copy')
.classList.toggle('wait-password', boxChecked);