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:
@@ -4007,6 +4007,9 @@
|
|||||||
"passkeyRemoved": {
|
"passkeyRemoved": {
|
||||||
"message": "Passkey removed"
|
"message": "Passkey removed"
|
||||||
},
|
},
|
||||||
|
"autofillSuggestions": {
|
||||||
|
"message": "Autofill suggestions"
|
||||||
|
},
|
||||||
"itemSuggestions": {
|
"itemSuggestions": {
|
||||||
"message": "Suggested items"
|
"message": "Suggested items"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user