1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 18:23:31 +00:00

Add support for hidden password

This commit is contained in:
hinton
2020-05-24 19:59:49 +02:00
parent ae5dbbd267
commit 5e4259db38
5 changed files with 19 additions and 9 deletions

View File

@@ -13,7 +13,7 @@
</span>
<span class="row-btn" appStopClick appStopProp appA11yTitle="{{'copyPassword' | i18n}}"
(click)="copy(cipher, cipher.login.password, 'password', 'Password')"
[ngClass]="{disabled: !cipher.login.password}">
[ngClass]="{disabled: (!cipher.login.password || !cipher.viewPassword)}">
<i class="fa fa-lg fa-key" aria-hidden="true"></i>
</span>
</ng-container>

View File

@@ -53,6 +53,10 @@ export class ActionButtonsComponent {
return;
}
if (!cipher.viewPassword) {
return;
}
this.analytics.eventTrack.next({ action: 'Copied ' + aType });
this.platformUtilsService.copyToClipboard(value, { window: window });
this.toasterService.popAsync('info', null,