Update with NPM
Fix css and function name
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user