mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-16 01:21:48 +01:00
PM-8113 - TwoFactorOptionsComponent - add todos
This commit is contained in:
parent
af9d132cae
commit
5df561c1a3
@ -4,7 +4,6 @@ import { Component, EventEmitter, OnInit, Output } from "@angular/core";
|
|||||||
import { firstValueFrom } from "rxjs";
|
import { firstValueFrom } from "rxjs";
|
||||||
|
|
||||||
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
||||||
import { I18nPipe } from "@bitwarden/angular/platform/pipes/i18n.pipe";
|
|
||||||
import { TwoFactorService } from "@bitwarden/common/auth/abstractions/two-factor.service";
|
import { TwoFactorService } from "@bitwarden/common/auth/abstractions/two-factor.service";
|
||||||
import { TwoFactorProviderType } from "@bitwarden/common/auth/enums/two-factor-provider-type";
|
import { TwoFactorProviderType } from "@bitwarden/common/auth/enums/two-factor-provider-type";
|
||||||
import { ClientType } from "@bitwarden/common/enums";
|
import { ClientType } from "@bitwarden/common/enums";
|
||||||
@ -12,6 +11,8 @@ import { EnvironmentService } from "@bitwarden/common/platform/abstractions/envi
|
|||||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
import { ButtonModule, DialogModule, DialogService, TypographyModule } from "@bitwarden/components";
|
import { ButtonModule, DialogModule, DialogService, TypographyModule } from "@bitwarden/components";
|
||||||
|
|
||||||
|
// TODO: rename all other options components to v1.
|
||||||
|
// TODO: deprecate recovery code approach per design
|
||||||
export enum TwoFactorOptionsDialogResult {
|
export enum TwoFactorOptionsDialogResult {
|
||||||
Provider = "Provider selected",
|
Provider = "Provider selected",
|
||||||
Recover = "Recover selected",
|
Recover = "Recover selected",
|
||||||
@ -27,7 +28,7 @@ export type TwoFactorOptionsDialogResultType = {
|
|||||||
selector: "app-two-factor-options",
|
selector: "app-two-factor-options",
|
||||||
templateUrl: "two-factor-options.component.html",
|
templateUrl: "two-factor-options.component.html",
|
||||||
imports: [CommonModule, JslibModule, DialogModule, ButtonModule, TypographyModule],
|
imports: [CommonModule, JslibModule, DialogModule, ButtonModule, TypographyModule],
|
||||||
providers: [I18nPipe],
|
providers: [],
|
||||||
})
|
})
|
||||||
export class TwoFactorOptionsComponent implements OnInit {
|
export class TwoFactorOptionsComponent implements OnInit {
|
||||||
@Output() onProviderSelected = new EventEmitter<TwoFactorProviderType>();
|
@Output() onProviderSelected = new EventEmitter<TwoFactorProviderType>();
|
||||||
|
Loading…
Reference in New Issue
Block a user