diff options
author | Marius David Wieschollek <passwords.public@mdns.eu> | 2021-01-09 12:57:34 +0300 |
---|---|---|
committer | Marius David Wieschollek <passwords.public@mdns.eu> | 2021-01-09 12:57:34 +0300 |
commit | 9c985e1eb649d8a3af4fae12056a51ea3ad801f8 (patch) | |
tree | 92aae1e61bce4ed8ea207165254e523393ac174a /src/vue | |
parent | a02cc6599cd9dddc6df5ef01cc89607d177f8a35 (diff) |
Only show bad password warning while popup open
Signed-off-by: Marius David Wieschollek <passwords.public@mdns.eu>
Diffstat (limited to 'src/vue')
-rw-r--r-- | src/vue/Components/List/Item/Password.vue | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vue/Components/List/Item/Password.vue b/src/vue/Components/List/Item/Password.vue index cc37631..28d59ea 100644 --- a/src/vue/Components/List/Item/Password.vue +++ b/src/vue/Components/List/Item/Password.vue @@ -78,6 +78,13 @@ try { await ToastService.success(['PasswordPastedSuccess', this.password.getLabel()]); + + if(this.password.getStatus() === 2 && await SettingsService.getValue('paste.compromised.warning')) { + ToastService + .warning('PasteBadPasswordWarning', null, 3) + .catch(ErrorManager.catchEvt); + } + if(await SettingsService.getValue('paste.popup.close') && this.active) { window.close(); } |