|
|
|
@ -32,14 +32,13 @@ import { isNotEmptyStr } from '@core/utils'; |
|
|
|
import { Subject } from 'rxjs'; |
|
|
|
import { takeUntil } from 'rxjs/operators'; |
|
|
|
import { MatExpansionPanel } from '@angular/material/expansion'; |
|
|
|
import { HasShowLoading } from '@home/pages/home-pages.models'; |
|
|
|
|
|
|
|
@Component({ |
|
|
|
selector: 'tb-2fa-settings', |
|
|
|
templateUrl: './two-factor-auth-settings.component.html', |
|
|
|
styleUrls: [ './settings-card.scss', './two-factor-auth-settings.component.scss'] |
|
|
|
}) |
|
|
|
export class TwoFactorAuthSettingsComponent extends PageComponent implements OnInit, HasConfirmForm, HasShowLoading, OnDestroy { |
|
|
|
export class TwoFactorAuthSettingsComponent extends PageComponent implements OnInit, HasConfirmForm, OnDestroy { |
|
|
|
|
|
|
|
private readonly destroy$ = new Subject<void>(); |
|
|
|
private readonly posIntValidation = [Validators.required, Validators.min(1), Validators.pattern(/^\d*$/)]; |
|
|
|
@ -48,7 +47,7 @@ export class TwoFactorAuthSettingsComponent extends PageComponent implements OnI |
|
|
|
twoFactorAuthProviderType = TwoFactorAuthProviderType; |
|
|
|
twoFactorAuthProvidersData = twoFactorAuthProvidersData; |
|
|
|
|
|
|
|
showLoadingBar = false; |
|
|
|
showMainLoadingBar = false; |
|
|
|
|
|
|
|
@ViewChildren(MatExpansionPanel) expansionPanel: QueryList<MatExpansionPanel>; |
|
|
|
|
|
|
|
|