Fix de style

+ diminution à 500ms de wait sur l'affichage
des datas pour les tableaux
This commit is contained in:
Sébastien André
2020-04-01 19:59:45 +02:00
parent 5c961f8f3d
commit 888903cef1
6 changed files with 24 additions and 24 deletions

View File

@@ -43,7 +43,7 @@ export class ListOfAircraftsComponent implements OnInit {
this.dataSourceTable = new MatTableDataSource<AircraftResp>(data);
this.dataSourceTable.paginator = this.paginator;
this.resultsLength = data.length;
}, 2000);
}, 500);
});
}

View File

@@ -52,7 +52,7 @@ export class ListOfDzsComponent implements OnInit {
this.dataSourceTable = new MatTableDataSource<DropZoneResp>(data);
this.dataSourceTable.paginator = this.paginator;
this.resultsLength = data.length;
}, 2000);
}, 500);
});
}

View File

@@ -50,7 +50,7 @@ export class ListOfGearsComponent implements OnInit {
this.dataSourceTable = new MatTableDataSource<GearResp>(data);
this.dataSourceTable.paginator = this.paginator;
this.resultsLength = data.length;
}, 2000);
}, 500);
});
}

View File

@@ -43,7 +43,7 @@ export class ListOfJumpTypesComponent implements OnInit {
this.dataSourceTable = new MatTableDataSource<JumpTypeResp>(data);
this.dataSourceTable.paginator = this.paginator;
this.resultsLength = data.length;
}, 2000);
}, 500);
});
}

View File

@@ -1,26 +1,26 @@
import { Component, OnInit, ViewChild } from '@angular/core';
import { MatPaginator } from '@angular/material/paginator';
import { MatTableDataSource } from '@angular/material/table';
import { Component, OnInit, ViewChild } from "@angular/core";
import { MatPaginator } from "@angular/material/paginator";
import { MatTableDataSource } from "@angular/material/table";
import { Observable } from 'rxjs';
import { JumpResp } from '../../models/jump';
import { JumpService } from '../../services/jump.service';
import { ServiceComm } from '../../services/service-comm.service';
import { Observable } from "rxjs";
import { JumpResp } from "../../models/jump";
import { JumpService } from "../../services/jump.service";
import { ServiceComm } from "../../services/service-comm.service";
@Component({
selector: 'app-list-of-jumps',
templateUrl: './list-of-jumps.component.html',
styleUrls: ['./list-of-jumps.component.css']
selector: "app-list-of-jumps",
templateUrl: "./list-of-jumps.component.html",
styleUrls: ["./list-of-jumps.component.css"]
})
export class ListOfJumpsComponent implements OnInit {
public listOfJumps: Observable<Array<JumpResp>>;
public displayedColumns: Array<string> = [
'id',
'jumpDate',
'jumpType',
'aircraft',
'dropZone',
'gear'
"id",
"jumpDate",
"jumpType",
"aircraft",
"dropZone",
"gear"
];
public dataSourceTable;
public resultsLength = 0;
@@ -32,7 +32,7 @@ export class ListOfJumpsComponent implements OnInit {
) {}
ngOnInit() {
this.serviceComm.UpdatedComponentTitle('List of jumps');
this.serviceComm.UpdatedComponentTitle("List of jumps");
this.getListOfJumps();
}
@@ -44,7 +44,7 @@ export class ListOfJumpsComponent implements OnInit {
this.dataSourceTable = new MatTableDataSource<JumpResp>(data);
this.dataSourceTable.paginator = this.paginator;
this.resultsLength = data.length;
}, 2000);
}, 500);
});
}
}

View File

@@ -1,4 +1,4 @@
<div class="col-md-4 offset-md-3 mt-5">
<div class="col-md-4 offset-md-4 mt-5">
<div class="card">
<h4 class="card-header">Login to the Skydive log</h4>
<div class="card-body">