import { Component } from "@angular/core" ; import { Router } from "@angular/router" ; import { AuthService } from "jslib-common/abstractions/auth.service" ; import { I18nService } from "jslib-common/abstractions/i18n.service" ; import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service" ; import { TwoFactorOptionsComponent as BaseTwoFactorOptionsComponent } from "jslib-angular/components/two-factor-options.component" ; @ Component ( { selector : "app-two-factor-options" , templateUrl : "two-factor-options.component.html" , } ) export class TwoFactorOptionsComponent extends BaseTwoFactorOptionsComponent { constructor ( authService , router , i18nService , platformUtilsService ) { super ( authService , router , i18nService , platformUtilsService , window ) ; } choose ( p ) { super . choose ( p ) ; this . authService . selectedTwoFactorProviderType = p . type ; this . router . navigate ( [ "2fa" ] ) ; } }