1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-28 04:08:47 +02:00

[PM-8486] Hide Autofill and Save option for Cards/Identities

This commit is contained in:
Shane Melton 2024-06-12 19:51:16 -07:00
parent dcdd7ef239
commit 26e0402b88
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View File

@ -13,7 +13,7 @@
<button type="button" bitMenuItem (click)="doAutofill()">
{{ "autofill" | i18n }}
</button>
<button type="button" bitMenuItem *ngIf="canEdit" (click)="doAutofillAndSave()">
<button type="button" bitMenuItem *ngIf="canEdit && isLogin" (click)="doAutofillAndSave()">
{{ "fillAndSave" | i18n }}
</button>
</ng-container>

View File

@ -62,6 +62,10 @@ export class ItemMoreOptionsComponent {
return [CipherType.Login, CipherType.Card, CipherType.Identity].includes(this.cipher.type);
}
get isLogin() {
return this.cipher.type === CipherType.Login;
}
get favoriteText() {
return this.cipher.favorite ? "unfavorite" : "favorite";
}