mirror of
https://github.com/bitwarden/browser
synced 2026-01-07 19:13:39 +00:00
Adds standalone: false to all components since Angular is changing the default to true and we'd rather not have the angular PR change 300+ files.
31 lines
882 B
TypeScript
31 lines
882 B
TypeScript
import { Component } from "@angular/core";
|
|
import { Params } from "@angular/router";
|
|
|
|
import { BitwardenLogo } from "@bitwarden/auth/angular";
|
|
import { BaseAcceptComponent } from "@bitwarden/web-vault/app/common/base.accept.component";
|
|
|
|
@Component({
|
|
selector: "app-setup-provider",
|
|
templateUrl: "setup-provider.component.html",
|
|
standalone: false,
|
|
})
|
|
export class SetupProviderComponent extends BaseAcceptComponent {
|
|
protected logo = BitwardenLogo;
|
|
failedShortMessage = "inviteAcceptFailedShort";
|
|
failedMessage = "inviteAcceptFailed";
|
|
|
|
requiredParameters = ["providerId", "email", "token"];
|
|
|
|
async authedHandler(qParams: Params) {
|
|
this.router.navigate(["/providers/setup"], { queryParams: qParams });
|
|
}
|
|
|
|
async unauthedHandler(qParams: Params) {
|
|
// Empty
|
|
}
|
|
|
|
login() {
|
|
this.router.navigate(["/login"], { queryParams: { email: this.email } });
|
|
}
|
|
}
|