Add metrics graphs to itgui

This commit is contained in:
2022-05-10 23:37:58 -07:00
parent 66618e5bf0
commit 422f844943
4 changed files with 168 additions and 0 deletions

View File

@@ -36,6 +36,11 @@ func main() {
container.NewTabItem("Firmware", firmwareTab(ctx, client, w)),
)
metricsTab := graphTab(ctx, client, w)
if metricsTab != nil {
tabs.Append(container.NewTabItem("Metrics", metricsTab))
}
// When a tab is selected
tabs.OnSelected = func(ti *container.TabItem) {
// If the tab's name is FS