minor fix for togglePasswordInput

This commit is contained in:
ehuggett 2017-11-01 23:36:45 +00:00
parent a32638ed4c
commit fdafc1c59e

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);