mirror of
https://github.com/bitwarden/browser
synced 2026-02-08 12:40:26 +00:00
consolidate excluded domains copy to allow removal of service invocation
This commit is contained in:
@@ -2738,9 +2738,6 @@
|
||||
"excludedDomainsDesc": {
|
||||
"message": "Bitwarden will not ask to save login details for these domains. You must refresh the page for changes to take effect."
|
||||
},
|
||||
"excludedDomainsDescAlt": {
|
||||
"message": "Bitwarden will not ask to save login details for these domains for all logged in accounts. You must refresh the page for changes to take effect."
|
||||
},
|
||||
"blockedDomainsDesc": {
|
||||
"message": "Autofill and other related features will not be offered for these websites. You must refresh the page for changes to take effect."
|
||||
},
|
||||
|
||||
@@ -7,11 +7,7 @@
|
||||
|
||||
<div class="tw-bg-background-alt">
|
||||
<p>
|
||||
{{
|
||||
(accountSwitcherEnabled$ | async)
|
||||
? ("excludedDomainsDescAlt" | i18n)
|
||||
: ("excludedDomainsDesc" | i18n)
|
||||
}}
|
||||
{{ "excludedDomainsDesc" | i18n }}
|
||||
</p>
|
||||
<bit-section *ngIf="!isLoading">
|
||||
<bit-section-header>
|
||||
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
FormArray,
|
||||
} from "@angular/forms";
|
||||
import { RouterModule } from "@angular/router";
|
||||
import { Observable, Subject, takeUntil } from "rxjs";
|
||||
import { Subject, takeUntil } from "rxjs";
|
||||
|
||||
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
||||
import { DomainSettingsService } from "@bitwarden/common/autofill/services/domain-settings.service";
|
||||
@@ -35,7 +35,6 @@ import {
|
||||
TypographyModule,
|
||||
} from "@bitwarden/components";
|
||||
|
||||
import { AccountSwitcherService } from "../../../auth/popup/account-switching/services/account-switcher.service";
|
||||
import { PopOutComponent } from "../../../platform/popup/components/pop-out.component";
|
||||
import { PopupFooterComponent } from "../../../platform/popup/layout/popup-footer.component";
|
||||
import { PopupHeaderComponent } from "../../../platform/popup/layout/popup-header.component";
|
||||
@@ -74,8 +73,6 @@ export class ExcludedDomainsComponent implements AfterViewInit, OnDestroy {
|
||||
@ViewChildren("uriInput") uriInputElements: QueryList<ElementRef<HTMLInputElement>> =
|
||||
new QueryList();
|
||||
|
||||
readonly accountSwitcherEnabled$: Observable<boolean> =
|
||||
this.accountSwitcherService.accountSwitchingEnabled$();
|
||||
dataIsPristine = true;
|
||||
isLoading = false;
|
||||
excludedDomainsState: string[] = [];
|
||||
@@ -96,7 +93,6 @@ export class ExcludedDomainsComponent implements AfterViewInit, OnDestroy {
|
||||
private toastService: ToastService,
|
||||
private formBuilder: FormBuilder,
|
||||
private popupRouterCacheService: PopupRouterCacheService,
|
||||
private accountSwitcherService: AccountSwitcherService,
|
||||
) {}
|
||||
|
||||
get domainForms() {
|
||||
|
||||
Reference in New Issue
Block a user