attempt to send update to plugin
This commit is contained in:
parent
19e29d21d7
commit
73196c3231
10
doGui.go
10
doGui.go
|
@ -121,7 +121,8 @@ func findVersion(m *zoopb.Machine, pkgname string) string {
|
||||||
|
|
||||||
func makeDropletsWindow(pb *virtpb.Droplets) (*GenericWindow, *virtpb.DropletsTable) {
|
func makeDropletsWindow(pb *virtpb.Droplets) (*GenericWindow, *virtpb.DropletsTable) {
|
||||||
win := NewGenericWindow("Droplets registered with Virtigo", "Buttons of things")
|
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 := win.Group.RawGrid()
|
||||||
grid.NewButton("Create", func() {
|
grid.NewButton("Create", func() {
|
||||||
|
@ -171,13 +172,17 @@ func makeDropletsWindow(pb *virtpb.Droplets) (*GenericWindow, *virtpb.DropletsTa
|
||||||
|
|
||||||
func makeHypervisorsWindow(pb *virtpb.Hypervisors) *GenericWindow {
|
func makeHypervisorsWindow(pb *virtpb.Hypervisors) *GenericWindow {
|
||||||
win := NewGenericWindow("Hypervisors registered with Virtigo", "Buttons of things")
|
win := NewGenericWindow("Hypervisors registered with Virtigo", "Buttons of things")
|
||||||
|
t := pb.NewTable("testHyper")
|
||||||
grid := win.Group.RawGrid()
|
grid := win.Group.RawGrid()
|
||||||
grid.NewButton("List", func() {
|
grid.NewButton("List", func() {
|
||||||
log.Info("list...")
|
log.Info("list...")
|
||||||
})
|
})
|
||||||
|
grid.NewButton("Update", func() {
|
||||||
|
t.Update()
|
||||||
|
})
|
||||||
|
|
||||||
tbox := win.Bottom.Box() // a vertical box (like a stack of books)
|
tbox := win.Bottom.Box() // a vertical box (like a stack of books)
|
||||||
t := pb.NewTable("test 2")
|
t.NewUuid()
|
||||||
t.SetParent(tbox)
|
t.SetParent(tbox)
|
||||||
t.AddHostname()
|
t.AddHostname()
|
||||||
t.AddMemory()
|
t.AddMemory()
|
||||||
|
@ -221,6 +226,7 @@ func makeEventsWindow(pb *virtpb.Events) *GenericWindow {
|
||||||
|
|
||||||
tbox := win.Bottom.Box() // a vertical box (like a stack of books)
|
tbox := win.Bottom.Box() // a vertical box (like a stack of books)
|
||||||
t := pb.NewTable("test 2")
|
t := pb.NewTable("test 2")
|
||||||
|
t.NewUuid()
|
||||||
t.SetParent(tbox)
|
t.SetParent(tbox)
|
||||||
t.AddDroplet()
|
t.AddDroplet()
|
||||||
t.AddHypervisor()
|
t.AddHypervisor()
|
||||||
|
|
Loading…
Reference in New Issue