mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-06 23:51:28 +01:00
parent
4bd750c166
commit
5e29d9be45
@ -25,7 +25,8 @@
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<environment-selector></environment-selector>
|
||||
<environment-selector #environmentSelector (onOpenSelfHostedSettings)="settings()">
|
||||
</environment-selector>
|
||||
</div>
|
||||
<div class="checkbox remember-email">
|
||||
<label for="rememberEmail">
|
||||
|
@ -33,8 +33,8 @@ const BroadcasterSubscriptionId = "LoginComponent";
|
||||
export class LoginComponent extends BaseLoginComponent implements OnDestroy {
|
||||
@ViewChild("environment", { read: ViewContainerRef, static: true })
|
||||
environmentModal: ViewContainerRef;
|
||||
@ViewChild(EnvironmentSelectorComponent)
|
||||
environmentSelector!: EnvironmentSelectorComponent;
|
||||
@ViewChild("environmentSelector", { read: ViewContainerRef, static: true })
|
||||
environmentSelector: EnvironmentSelectorComponent;
|
||||
|
||||
protected componentDestroyed$: Subject<void> = new Subject();
|
||||
webVaultHostname = "";
|
||||
@ -121,11 +121,6 @@ export class LoginComponent extends BaseLoginComponent implements OnDestroy {
|
||||
});
|
||||
});
|
||||
this.messagingService.send("getWindowIsFocused");
|
||||
this.environmentSelector.onOpenSelfHostedSettings
|
||||
.pipe(takeUntil(this.componentDestroyed$))
|
||||
.subscribe(() => {
|
||||
this.settings();
|
||||
});
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
|
Loading…
Reference in New Issue
Block a user