Update with NPM

Fix css and function name
This commit is contained in:
Sébastien André
2020-01-09 16:29:48 +01:00
parent 192af9e0bf
commit 79deeb4c2a
24 changed files with 3432 additions and 1744 deletions

View File

@@ -38,7 +38,7 @@
<td mat-cell *matCellDef="let element">{{element.reserveCanopy}}</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: true"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table>
</div>

View File

@@ -4,6 +4,7 @@ import { MatPaginator, MatTableDataSource } from '@angular/material';
import { ServiceApiGet } from '../../services/service-api-get.service';
import { ServiceComm } from '../../services/service-comm.service';
import { GearResp } from '../../models/gear';
import { AddAction } from '../../models/add-action.enum';
@Component({
selector: 'app-list-of-gears',
@@ -31,7 +32,13 @@ export class ListOfGearsComponent implements OnInit {
) { }
ngOnInit() {
this.serviceComm.updatedComponentTitle('List of gears');
this.serviceComm.refreshRequest.subscribe(action => {
if (action === AddAction.Gear) {
this.getListOfGears();
}
});
this.serviceComm.UpdatedComponentTitle('List of gears');
this.getListOfGears();
}