From fdafc1c59ecba1ce5fc500ddfb41e316290c44a5 Mon Sep 17 00:00:00 2001 From: ehuggett Date: Wed, 1 Nov 2017 23:36:45 +0000 Subject: [PATCH 1/2] minor fix for togglePasswordInput --- app/templates/uploadPassword.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/templates/uploadPassword.js b/app/templates/uploadPassword.js index 8c719116..74c901d0 100644 --- a/app/templates/uploadPassword.js +++ b/app/templates/uploadPassword.js @@ -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); From 98491eed019395f582df018c41abade796f47865 Mon Sep 17 00:00:00 2001 From: ehuggett Date: Thu, 2 Nov 2017 00:08:36 +0000 Subject: [PATCH 2/2] set autocomplete off for addPassword checkbox --- app/templates/uploadPassword.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/uploadPassword.js b/app/templates/uploadPassword.js index 74c901d0..27ec85a1 100644 --- a/app/templates/uploadPassword.js +++ b/app/templates/uploadPassword.js @@ -5,7 +5,7 @@ module.exports = function(state, emit) { const div = html`
- +