1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 10:43:35 +00:00

move auth request notification to service (#8451)

- cleanup hanging promises
This commit is contained in:
Jake Fink
2024-03-28 09:34:21 -04:00
committed by GitHub
parent 37735436d1
commit bd6b3266d4
11 changed files with 57 additions and 133 deletions

View File

@@ -1,5 +1,5 @@
import { Location } from "@angular/common";
import { Component, OnDestroy, OnInit, ViewChild, ViewContainerRef } from "@angular/core";
import { Component, ViewChild, ViewContainerRef } from "@angular/core";
import { Router } from "@angular/router";
import { LoginViaAuthRequestComponent as BaseLoginWithDeviceComponent } from "@bitwarden/angular/auth/components/login-via-auth-request.component";
@@ -31,10 +31,7 @@ import { EnvironmentComponent } from "../environment.component";
selector: "app-login-via-auth-request",
templateUrl: "login-via-auth-request.component.html",
})
export class LoginViaAuthRequestComponent
extends BaseLoginWithDeviceComponent
implements OnInit, OnDestroy
{
export class LoginViaAuthRequestComponent extends BaseLoginWithDeviceComponent {
@ViewChild("environment", { read: ViewContainerRef, static: true })
environmentModal: ViewContainerRef;
showingModal = false;
@@ -109,10 +106,6 @@ export class LoginViaAuthRequestComponent
});
}
ngOnDestroy(): void {
super.ngOnDestroy();
}
back() {
this.location.back();
}