|
|
@ -1,6 +1,5 @@
|
|
|
|
import { Component, OnDestroy, OnInit, Inject } from "@angular/core";
|
|
|
|
import { Component, OnDestroy, OnInit, Inject } from "@angular/core";
|
|
|
|
import { UntypedFormBuilder, UntypedFormGroup, Validators } from "@angular/forms";
|
|
|
|
import { UntypedFormBuilder, UntypedFormGroup, Validators } from "@angular/forms";
|
|
|
|
import { UntypedFormBuilder, UntypedFormGroup, Validators } from "@angular/forms";
|
|
|
|
|
|
|
|
import { ActivatedRoute, Router } from "@angular/router";
|
|
|
|
import { ActivatedRoute, Router } from "@angular/router";
|
|
|
|
import { TranslateService } from "@ngx-translate/core";
|
|
|
|
import { TranslateService } from "@ngx-translate/core";
|
|
|
|
|
|
|
|
|
|
|
@ -20,7 +19,6 @@ import { RadarrFacade } from "app/state/radarr";
|
|
|
|
styleUrls: ["./login.component.scss"],
|
|
|
|
styleUrls: ["./login.component.scss"],
|
|
|
|
})
|
|
|
|
})
|
|
|
|
export class LoginComponent implements OnDestroy, OnInit {
|
|
|
|
export class LoginComponent implements OnDestroy, OnInit {
|
|
|
|
public form: UntypedFormGroup;
|
|
|
|
|
|
|
|
public form: UntypedFormGroup;
|
|
|
|
public form: UntypedFormGroup;
|
|
|
|
public customizationSettings: ICustomizationSettings;
|
|
|
|
public customizationSettings: ICustomizationSettings;
|
|
|
|
public authenticationSettings: IAuthenticationSettings;
|
|
|
|
public authenticationSettings: IAuthenticationSettings;
|
|
|
@ -55,7 +53,6 @@ export class LoginComponent implements OnDestroy, OnInit {
|
|
|
|
private router: Router,
|
|
|
|
private router: Router,
|
|
|
|
private status: StatusService,
|
|
|
|
private status: StatusService,
|
|
|
|
private fb: UntypedFormBuilder,
|
|
|
|
private fb: UntypedFormBuilder,
|
|
|
|
private fb: UntypedFormBuilder,
|
|
|
|
|
|
|
|
private settingsService: SettingsService,
|
|
|
|
private settingsService: SettingsService,
|
|
|
|
private customziationFacade: CustomizationFacade,
|
|
|
|
private customziationFacade: CustomizationFacade,
|
|
|
|
private route: ActivatedRoute,
|
|
|
|
private route: ActivatedRoute,
|
|
|
@ -122,7 +119,6 @@ export class LoginComponent implements OnDestroy, OnInit {
|
|
|
|
.subscribe((x) => (this.errorValidation = x));
|
|
|
|
.subscribe((x) => (this.errorValidation = x));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public onSubmit(form: UntypedFormGroup) {
|
|
|
|
|
|
|
|
public onSubmit(form: UntypedFormGroup) {
|
|
|
|
public onSubmit(form: UntypedFormGroup) {
|
|
|
|
if (form.invalid) {
|
|
|
|
if (form.invalid) {
|
|
|
|
this.notify.open(this.errorValidation, "OK", {
|
|
|
|
this.notify.open(this.errorValidation, "OK", {
|
|
|
|