1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 21:33:27 +00:00

[PM-22613] remove copy options if item does not have username and or password (#15192)

This commit is contained in:
Jason Ng
2025-06-16 14:33:51 -04:00
committed by GitHub
parent ce9bfd07a0
commit 9ba593701a

View File

@@ -105,11 +105,11 @@
></button>
<bit-menu #cipherOptions>
<ng-container *ngIf="isNotDeletedLoginCipher">
<button bitMenuItem type="button" (click)="copy('username')">
<button bitMenuItem type="button" (click)="copy('username')" *ngIf="cipher.login.username">
<i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
{{ "copyUsername" | i18n }}
</button>
<button bitMenuItem type="button" (click)="copy('password')" *ngIf="cipher.viewPassword">
<button bitMenuItem type="button" (click)="copy('password')" *ngIf="cipher.login.password">
<i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
{{ "copyPassword" | i18n }}
</button>