1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 06:13:38 +00:00

update the suggested items section header copy based on the blocked state of the current page (#12860)

This commit is contained in:
Jonathan Prusik
2025-01-15 11:22:24 -05:00
committed by GitHub
parent 1721552294
commit b26ad6a173
3 changed files with 10 additions and 1 deletions

View File

@@ -4007,6 +4007,9 @@
"passkeyRemoved": { "passkeyRemoved": {
"message": "Passkey removed" "message": "Passkey removed"
}, },
"autofillSuggestions": {
"message": "Autofill suggestions"
},
"itemSuggestions": { "itemSuggestions": {
"message": "Suggested items" "message": "Suggested items"
}, },

View File

@@ -1,7 +1,7 @@
<app-vault-list-items-container <app-vault-list-items-container
*ngIf="autofillCiphers$ | async as ciphers" *ngIf="autofillCiphers$ | async as ciphers"
[ciphers]="ciphers" [ciphers]="ciphers"
[title]="'itemSuggestions' | i18n" [title]="((currentURIIsBlocked$ | async) ? 'itemSuggestions' : 'autofillSuggestions') | i18n"
[showRefresh]="showRefresh" [showRefresh]="showRefresh"
(onRefresh)="refreshCurrentTab()" (onRefresh)="refreshCurrentTab()"
[description]="(showEmptyAutofillTip$ | async) ? ('autofillSuggestionsTip' | i18n) : null" [description]="(showEmptyAutofillTip$ | async) ? ('autofillSuggestionsTip' | i18n) : null"

View File

@@ -65,6 +65,12 @@ export class AutofillVaultListItemsComponent implements OnInit {
), ),
); );
/**
* Flag indicating that the current tab location is blocked
*/
currentURIIsBlocked$: Observable<boolean> =
this.vaultPopupAutofillService.currentTabIsOnBlocklist$;
constructor( constructor(
private vaultPopupItemsService: VaultPopupItemsService, private vaultPopupItemsService: VaultPopupItemsService,
private vaultPopupAutofillService: VaultPopupAutofillService, private vaultPopupAutofillService: VaultPopupAutofillService,