Ajout des formulaires de création de
"Aircraft", "JumpType", "Gear" et "DZ".
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
<button (click)="add()">Add a aircraft</button>
|
||||
<app-new-drop-zone *ngIf="showAddForm === true"></app-new-drop-zone>
|
||||
|
||||
<div *ngIf="dataSourceTable != null else loading" class="table-container">
|
||||
<table mat-table [dataSource]="dataSourceTable">
|
||||
<ng-container matColumnDef="isfavorite">
|
||||
|
||||
@@ -23,9 +23,10 @@ export class ListOfDzsComponent implements OnInit {
|
||||
'email',
|
||||
'type'
|
||||
];
|
||||
public dataSourceTable;
|
||||
public dataSourceTable: MatTableDataSource<DropZoneResp>;
|
||||
public resultsLength = 0;
|
||||
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
|
||||
public showAddForm: boolean;
|
||||
|
||||
constructor(
|
||||
private serviceApiGet: ServiceApiGet,
|
||||
@@ -54,4 +55,8 @@ export class ListOfDzsComponent implements OnInit {
|
||||
public removeToFavorite(dropzone: DropZoneResp) {
|
||||
dropzone.isFavorite = this.serviceApiPut.RemoveFavoriteDropZone(dropzone);
|
||||
}
|
||||
|
||||
public add() {
|
||||
this.showAddForm = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user