1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

Hide passwords functionality for desktop

This commit is contained in:
hinton
2020-05-27 22:41:57 +02:00
parent be320fbea1
commit 66de9e93fa
3 changed files with 5 additions and 5 deletions

View File

@@ -166,7 +166,7 @@ export class VaultComponent implements OnInit, OnDestroy {
const pComponent = this.addEditComponent == null ? this.viewComponent : this.addEditComponent;
const pCipher = pComponent != null ? pComponent.cipher : null;
if (this.cipherId != null && pCipher != null && pCipher.id === this.cipherId &&
pCipher.login != null && pCipher.login.password != null) {
pCipher.login != null && pCipher.login.password != null && pCipher.viewPassword) {
this.copyValue(pCipher.login.password, 'password');
}
break;
@@ -299,7 +299,7 @@ export class VaultComponent implements OnInit, OnDestroy {
click: () => this.copyValue(cipher.login.username, 'username'),
}));
}
if (cipher.login.password != null) {
if (cipher.login.password != null && cipher.viewPassword) {
menu.append(new remote.MenuItem({
label: this.i18nService.t('copyPassword'),
click: () => {