ing
This commit is contained in:
@@ -5,6 +5,7 @@ import { catchError, exhaustMap, map, tap, take } from 'rxjs/operators';
|
||||
|
||||
|
||||
import { ProbeService } from '../service/probe.service';
|
||||
import { Interface } from '@overflow/model/net/nic';
|
||||
|
||||
@Component({
|
||||
selector: 'app-nic-dropdown',
|
||||
@@ -21,8 +22,8 @@ export class NicDropdownComponent implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.probeService.call<any>('MachineService.Interfaces').pipe(
|
||||
map((ifaces: any) => {
|
||||
this.probeService.call<Interface>('MachineService.Interfaces').pipe(
|
||||
map((ifaces: Interface[]) => {
|
||||
console.log(ifaces);
|
||||
}),
|
||||
catchError(error => {
|
||||
|
||||
Reference in New Issue
Block a user