Ajout de la traduction sur la page d'accueil
This commit is contained in:
@@ -2,6 +2,7 @@ import { Component, OnInit, ViewChild, AfterViewInit } from '@angular/core';
|
||||
import { Router, ActivatedRoute } from '@angular/router';
|
||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
||||
import { MatInput } from '@angular/material/input';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
|
||||
import { first } from 'rxjs/operators';
|
||||
|
||||
@@ -31,7 +32,8 @@ export class LoginUserComponent implements OnInit, AfterViewInit {
|
||||
private serviceApiAircraft : AircraftService,
|
||||
private serviceApiJumpType : JumpTypeService,
|
||||
private serviceApiDropzone : DropzoneService,
|
||||
private serviceApiGear : GearService) {
|
||||
private serviceApiGear : GearService,
|
||||
private translateService: TranslateService) {
|
||||
if (this.authenticationService.currentUserValue) {
|
||||
this.router.navigate(['/']);
|
||||
}
|
||||
@@ -71,7 +73,7 @@ export class LoginUserComponent implements OnInit, AfterViewInit {
|
||||
this.authenticationService.login(this.formCtrls.username.value, this.formCtrls.password.value)
|
||||
.pipe(first())
|
||||
.subscribe(
|
||||
() => {
|
||||
data => {
|
||||
this.serviceApiAircraft.getListOfAircrafts(false).subscribe();
|
||||
this.serviceApiJumpType.getListOfJumpTypes().subscribe();
|
||||
this.serviceApiDropzone.getListOfDropZones(false).subscribe();
|
||||
|
||||
Reference in New Issue
Block a user