Évol autour des infos/formulaires du harnais

This commit is contained in:
Sébastien André
2019-12-04 12:05:02 +01:00
parent 789c190c95
commit ac3dec8193
5 changed files with 70 additions and 25 deletions

View File

@@ -14,11 +14,11 @@ export class ListOfGearsComponent implements OnInit {
public displayedColumns: Array<string> = [
'id',
'name',
'latitude',
'longitude',
'address',
'email',
'type'
'manufacturer',
'maxSize',
'aad',
'mainCanopy',
'reserveCanopy'
];
public dataSourceTable: MatTableDataSource<GearResp>;
public resultsLength = 0;
@@ -37,7 +37,6 @@ export class ListOfGearsComponent implements OnInit {
getListOfGears() {
this.serviceApi.getListOfGears().subscribe(data => {
// data.sort((a, b) => (b.isFavorite ? 1 : 0) - (a.isFavorite ? 1 : 0));
this.dataSourceTable = new MatTableDataSource<GearResp>(data);
this.dataSourceTable.paginator = this.paginator;
this.resultsLength = data.length;