add a way to logout

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-06-16 12:02:03 -07:00
parent 956d270663
commit 777b0782a8
1 changed files with 8 additions and 2 deletions

View File

@ -72,10 +72,14 @@ func addVmsTab(box *gui.GuiBox, name string, count int, a *pb.Account) *gui.Tabl
mh := gui.AddTableBox(box, name, count, parts)
xBox := gui.HardBox(box.Window, gui.Xaxis, "below mh box")
gw := box.Window
makeButton(xBox, a, nil, "Add Virtual Machine", "JUNK", createAddVmBox)
makeButton(xBox, a, nil, "Login", "JUNK", login)
// makeButton(xBox, a, nil, "Configure", "JUNK", showAccountClick)
makeButton(xBox, a, nil, "Logout", "JUNK", func (*gui.GuiButton) {
gui.DeleteWindow(name)
makeCloudInfoBox(gw)
})
return mh
}
@ -109,7 +113,9 @@ func createAddVmBox(b *gui.GuiButton) {
box = gui.HardBox(gw, gui.Xaxis, txt)
makeButton(box, values.Account, nil, "Add Virtual Machine", "CREATE", createVmClick)
makeButton(box, values.Account, nil, "Cancel", "CLOSE", nil)
makeButton(box, values.Account, nil, "Cancel", "CLOSE", func (*gui.GuiButton) {
gui.DeleteWindow(txt)
})
}
func showVmMouseClick(b *gui.GuiButton) {