map create vm tab to the account
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
34d081f856
commit
5c707c2f85
2
gui.go
2
gui.go
|
@ -131,7 +131,7 @@ func mouseClick(b *ButtonMap) {
|
|||
log.Println("\tgui.mouseClick() START b.Action =", b.Action)
|
||||
if (b.Action == "createAddVmBox") {
|
||||
log.Println("\tgui.mouseClick() createAddVmBox for b =", b)
|
||||
createAddVmBox(Data.cloudTab, "Create New Virtual Machine")
|
||||
createAddVmBox(Data.cloudTab, "Create New Virtual Machine", b)
|
||||
return
|
||||
}
|
||||
/*
|
||||
|
|
|
@ -356,7 +356,7 @@ func CreateVmBox(tab *ui.Tab, vm *pb.Event_VM) {
|
|||
tab.SetMargined(0, true)
|
||||
}
|
||||
|
||||
func createAddVmBox(tab *ui.Tab, name string) {
|
||||
func createAddVmBox(tab *ui.Tab, name string, b *ButtonMap) {
|
||||
log.Println("createAddVmBox() START")
|
||||
vbox := ui.NewVerticalBox()
|
||||
vbox.SetPadded(true)
|
||||
|
@ -377,6 +377,7 @@ func createAddVmBox(tab *ui.Tab, name string) {
|
|||
hboxButtons.Append(CreateButton(nil, nil, "Add Virtual Machine","ADD", nil), false)
|
||||
hboxButtons.Append(CreateButton(nil, nil, "Cancel", "CLOSE", nil), false)
|
||||
|
||||
name += " (" + b.Account.Nick + ")"
|
||||
tab.Append(name, vbox)
|
||||
tab.SetMargined(0, true)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue