Browse Source

update only on graph change

pull/5570/head
Batwam 1 month ago
parent
commit
2bef2011ce
No known key found for this signature in database GPG Key ID: 7D9EDF6264938D38
  1. 6
      apps/client/src/app/components/home-overview/home-overview.component.ts

6
apps/client/src/app/components/home-overview/home-overview.component.ts

@ -166,7 +166,9 @@ export class GfHomeOverviewComponent implements OnDestroy, OnInit {
}
public onMetricClick(selectedgraph_type: string): void {
this.graph_type = selectedgraph_type; // update metric graph_type
this.update(); // rebuild historicalDataItems
if (this.graph_type !== selectedgraph_type) {
this.graph_type = selectedgraph_type;
this.update();
}
}
}

Loading…
Cancel
Save