summaryrefslogtreecommitdiff
path: root/infoTabUI.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-23 10:50:37 -0700
committerJeff Carr <[email protected]>2019-05-23 10:50:37 -0700
commite6e1fec4426cafeaaf458557d153377f3adce184 (patch)
treeeeb9db4bc62184358d06f571361a448fb189820e /infoTabUI.go
parent8cc6e993b9293f2558eb077054a73f3e72eddcd8 (diff)
pass through the account username and password
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'infoTabUI.go')
-rw-r--r--infoTabUI.go16
1 files changed, 3 insertions, 13 deletions
diff --git a/infoTabUI.go b/infoTabUI.go
index 778eb23..8b78770 100644
--- a/infoTabUI.go
+++ b/infoTabUI.go
@@ -26,20 +26,9 @@ func makeCloudInfoBox(custom func(int, string)) *ui.Box {
vbox.Append(ui.NewColorButton(), false)
addXbutton := CreateButton("Show bmath's Account", "BMATH", custom)
-/*
- addXbutton := ui.NewButton("Show bmath's Account")
- addXbutton.OnClicked(func(*ui.Button) {
- log.Println("gorillaSendProtobuf()")
- gorillaSendProtobuf()
- })
-*/
vbox.Append(addXbutton, false)
- addButton := ui.NewButton("Add Account")
- addButton.OnClicked(func(*ui.Button) {
- log.Println("Not Implemented Yet. Try adding --debugging")
- })
- vbox.Append(addButton, false)
+ vbox.Append(CreateButton("Add Account", "ADD", custom), false)
if (config.String("debugging") == "true") {
addDebuggingButtons(vbox, custom)
@@ -80,7 +69,8 @@ func makeCloudInfoBox(custom func(int, string)) *ui.Box {
hostname := config.String("accounts." + account + ".hostname")
domainname := config.String("accounts." + account + ".domainname")
port := config.String("accounts." + account + ".port")
- a := account + " " + hostname + " " + domainname + " " + port
+ username := config.String("accounts." + account + ".username")
+ a := account + " " + hostname + " " + domainname + " " + port + " " + username
log.Println("ACCOUNT: ", a)
vbox.Append(ui.NewLabel(a), false)
}