diff options
| author | Jeff Carr <[email protected]> | 2019-05-27 21:29:30 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-27 21:29:30 -0700 |
| commit | 2e033c4a80859dde3c70f5d1497a7800b6661c35 (patch) | |
| tree | 3d1c235ca1bc79dfe20fad0d69132fc984d24c6b /mainCloudBox.go | |
| parent | d886922680ff0661aa0c81087ffe399a93beda2e (diff) | |
sync with server daemon
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'mainCloudBox.go')
| -rw-r--r-- | mainCloudBox.go | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/mainCloudBox.go b/mainCloudBox.go index b7c2b3a..b1e171a 100644 --- a/mainCloudBox.go +++ b/mainCloudBox.go @@ -59,8 +59,8 @@ func makeCloudInfoBox() *ui.Box { row := 1 - for key, foo := range Data.Config.Accounts { - log.Println("account = ", key, foo) + for key, a := range Data.Config.Accounts { + log.Println("account = ", key, a) log.Println("Accounts[key] = ", Data.Config.Accounts[key]) log.Println("account.Nick = ", Data.Config.Accounts[key].Nick) log.Println("account.Username = ", Data.Config.Accounts[key].Username) @@ -280,7 +280,7 @@ func AddVmConfigureTab(name string, pbVM *pb.Event_VM) { } // makeEntryBox(box, "hostname:", "blah.foo.org") { -func makeEntryVbox(hbox *ui.Box, a string, startValue string, edit bool, action string) { +func makeEntryVbox(hbox *ui.Box, a string, startValue string, edit bool, action string) *EntryMap { // Start 'Nickname' vertical box vboxN := ui.NewVerticalBox() vboxN.SetPadded(true) @@ -291,6 +291,8 @@ func makeEntryVbox(hbox *ui.Box, a string, startValue string, edit bool, action vboxN.Append(e.E, false) hbox.Append(vboxN, false) // End 'Nickname' vertical box + + return e } /* @@ -328,9 +330,9 @@ func normalizeInt(s string) string { } func defaultEntryChange(e *ui.Entry) { - for key, foo := range Data.AllEntries { + for key, em := range Data.AllEntries { if (Data.Debug) { - log.Println("\tdefaultEntryChange() Data.AllEntries =", key, foo) + log.Println("\tdefaultEntryChange() Data.AllEntries =", key, em) } if Data.AllEntries[key].E == e { log.Println("defaultEntryChange() FOUND", @@ -451,9 +453,13 @@ func createAddVmBox(tab *ui.Tab, name string, b *ButtonMap) { vbox.Append(hboxButtons, false) var newb ButtonMap - newb.Action = "CREATE" - newb.VM = b.VM - newb.T = tab + newb.Action = "CREATE" + newb.VM = b.VM + newb.Account = b.Account + newb.T = tab + hostname.B = &newb + memory.B = &newb + disk.B = &newb hboxButtons.Append(AddButton(&newb, "Add Virtual Machine"), false) // hboxButtons.Append(CreateButton(nil, nil, "Add Virtual Machine","CREATE",nil), false) |
