Fix et add translation
This commit is contained in:
@@ -10,7 +10,6 @@ import { DropzoneService } from "../../services/dropzone.service";
|
||||
import { GearService } from "../../services/gear.service";
|
||||
import { JumpTypeService } from "../../services/jump-type.service";
|
||||
import { ServiceComm } from "../../services/service-comm.service";
|
||||
import { BaseComponent } from "../app.base.component";
|
||||
|
||||
@Component({
|
||||
selector: "app-default",
|
||||
@@ -18,21 +17,18 @@ import { BaseComponent } from "../app.base.component";
|
||||
styleUrls: ["./default.component.css"],
|
||||
imports: [TranslateModule, MatIconModule, RouterLink],
|
||||
})
|
||||
export class DefaultComponent extends BaseComponent {
|
||||
//implements OnInit {
|
||||
export class DefaultComponent implements OnInit {
|
||||
constructor(
|
||||
// private serviceComm: ServiceComm,
|
||||
// private translateService: TranslateService,
|
||||
private serviceComm: ServiceComm,
|
||||
private translateService: TranslateService,
|
||||
private authenticationService: AuthenticationService,
|
||||
private serviceApiAircraft: AircraftService,
|
||||
private serviceApiJumpType: JumpTypeService,
|
||||
private serviceApiDropzone: DropzoneService,
|
||||
private serviceApiGear: GearService,
|
||||
) {
|
||||
super("Default_Title");
|
||||
}
|
||||
) {}
|
||||
|
||||
override ngOnInit() {
|
||||
ngOnInit() {
|
||||
this.authenticationService.alwaysLogin();
|
||||
|
||||
this.putToCacheRefDatas().subscribe(() => {
|
||||
@@ -56,8 +52,8 @@ export class DefaultComponent extends BaseComponent {
|
||||
}
|
||||
|
||||
private updateTitle() {
|
||||
// this.translateService.get("Default_Title").subscribe((data) => {
|
||||
// this.serviceComm.updatedComponentTitle(data);
|
||||
// });
|
||||
this.translateService.get("Default_Title").subscribe((data) => {
|
||||
this.serviceComm.updatedComponentTitle(data);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user