|
|
|
@ -192,7 +192,7 @@ export class NetworkStatusComponent implements OnInit { |
|
|
|
switch (num) { |
|
|
|
case 0: { |
|
|
|
this.MODE = "ALL"; |
|
|
|
this.http.get(`api/nodes/list?q=${devicesToRequest()}`).subscribe( |
|
|
|
this.http.get(`api/nodes/list`).subscribe( |
|
|
|
(obj) => { |
|
|
|
(obj as NodeDTO[]).forEach( |
|
|
|
(node) => { |
|
|
|
@ -211,7 +211,7 @@ export class NetworkStatusComponent implements OnInit { |
|
|
|
default: { |
|
|
|
this.MODE = "NODE"; |
|
|
|
this.NUM = num; |
|
|
|
this.http.get(`api/nodes/${num}?q=${devicesToRequest()}`).subscribe( |
|
|
|
this.http.get(`api/nodes/${num}`).subscribe( |
|
|
|
(obj) => { |
|
|
|
const node: NodeDTO = obj as NodeDTO |
|
|
|
if (node) |
|
|
|
|