clear password input on toggle off

This commit is contained in:
Erica Wright 2017-10-24 13:00:27 -04:00
parent a5d28adc44
commit f814427a7d
No known key found for this signature in database
GPG key ID: D9F2AF9D67D0AAB7
2 changed files with 11 additions and 5 deletions

View file

@ -64,7 +64,9 @@ module.exports = function(state, emit) {
);
await delay(2000);
input.disabled = false;
copyBtn.disabled = false;
if (!copyBtn.parentNode.classList.contains('wait-password')) {
copyBtn.disabled = false;
}
copyBtn.classList.remove('success');
copyBtn.textContent = state.translate('copyUrlFormButton');
}