mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 21:33:27 +00:00
update the suggested items section header copy based on the blocked state of the current page (#12860)
This commit is contained in:
@@ -4007,6 +4007,9 @@
|
||||
"passkeyRemoved": {
|
||||
"message": "Passkey removed"
|
||||
},
|
||||
"autofillSuggestions": {
|
||||
"message": "Autofill suggestions"
|
||||
},
|
||||
"itemSuggestions": {
|
||||
"message": "Suggested items"
|
||||
},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<app-vault-list-items-container
|
||||
*ngIf="autofillCiphers$ | async as ciphers"
|
||||
[ciphers]="ciphers"
|
||||
[title]="'itemSuggestions' | i18n"
|
||||
[title]="((currentURIIsBlocked$ | async) ? 'itemSuggestions' : 'autofillSuggestions') | i18n"
|
||||
[showRefresh]="showRefresh"
|
||||
(onRefresh)="refreshCurrentTab()"
|
||||
[description]="(showEmptyAutofillTip$ | async) ? ('autofillSuggestionsTip' | i18n) : null"
|
||||
|
||||
@@ -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(
|
||||
private vaultPopupItemsService: VaultPopupItemsService,
|
||||
private vaultPopupAutofillService: VaultPopupAutofillService,
|
||||
|
||||
Reference in New Issue
Block a user