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