attempt to send update to plugin

This commit is contained in:
Jeff Carr 2025-02-23 04:56:36 -06:00
parent 19e29d21d7
commit 73196c3231
1 changed files with 8 additions and 2 deletions

View File

@ -121,7 +121,8 @@ func findVersion(m *zoopb.Machine, pkgname string) string {
func makeDropletsWindow(pb *virtpb.Droplets) (*GenericWindow, *virtpb.DropletsTable) {
win := NewGenericWindow("Droplets registered with Virtigo", "Buttons of things")
t := pb.NewTable("test 2")
t := pb.NewTable("testDroptable")
t.NewUuid()
grid := win.Group.RawGrid()
grid.NewButton("Create", func() {
@ -171,13 +172,17 @@ func makeDropletsWindow(pb *virtpb.Droplets) (*GenericWindow, *virtpb.DropletsTa
func makeHypervisorsWindow(pb *virtpb.Hypervisors) *GenericWindow {
win := NewGenericWindow("Hypervisors registered with Virtigo", "Buttons of things")
t := pb.NewTable("testHyper")
grid := win.Group.RawGrid()
grid.NewButton("List", func() {
log.Info("list...")
})
grid.NewButton("Update", func() {
t.Update()
})
tbox := win.Bottom.Box() // a vertical box (like a stack of books)
t := pb.NewTable("test 2")
t.NewUuid()
t.SetParent(tbox)
t.AddHostname()
t.AddMemory()
@ -221,6 +226,7 @@ func makeEventsWindow(pb *virtpb.Events) *GenericWindow {
tbox := win.Bottom.Box() // a vertical box (like a stack of books)
t := pb.NewTable("test 2")
t.NewUuid()
t.SetParent(tbox)
t.AddDroplet()
t.AddHypervisor()