summaryrefslogtreecommitdiff
path: root/infoTabUI.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-23 17:44:00 -0700
committerJeff Carr <[email protected]>2019-05-23 17:44:00 -0700
commite00e6670ed861ddfbc7eb6b17e1f75dfc24801ef (patch)
treedc034885553202a318b1ae257fc1f3f2d2383c5f /infoTabUI.go
parentcdf7ee0962b06812cce2219eb84d81b2426e8e3d (diff)
make custom buttons for the account sockets
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'infoTabUI.go')
-rw-r--r--infoTabUI.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/infoTabUI.go b/infoTabUI.go
index a952607..957034c 100644
--- a/infoTabUI.go
+++ b/infoTabUI.go
@@ -83,11 +83,10 @@ func makeCloudInfoBox(custom func(int, string)) *ui.Box {
agrid.Append(ui.NewLabel(account), 1, row, 1, 1, true, ui.AlignFill, false, ui.AlignFill)
agrid.Append(ui.NewLabel(username), 2, row, 1, 1, true, ui.AlignFill, false, ui.AlignFill)
agrid.Append(ui.NewLabel(domainname), 3, row, 1, 1, true, ui.AlignFill, false, ui.AlignFill)
- bname := "Open " + account
- b := CreateButton(bname, "SHOW", custom)
+
+ b := CreateAccountButton(account, custom)
agrid.Append(b, 4, row, 1, 1, true, ui.AlignFill, false, ui.AlignFill)
- // vbox.Append(ui.NewLabel(a), false)
row += 1
}
@@ -135,7 +134,7 @@ func addTableTab() {
AddTableTab(Data.cloudTab, 1, "test seven", 7, parts)
}
-func AddVmsTab(count int) *TableData {
+func AddVmsTab(name string, count int) *TableData {
var parts []TableColumnData
human := 0
@@ -189,7 +188,7 @@ func AddVmsTab(count int) *TableData {
parts = append(parts, tmp)
human += 1
- mh := AddTableTab(Data.cloudTab, 1, "Virtual Machines", count, parts)
+ mh := AddTableTab(Data.cloudTab, 1, name, count, parts)
return mh
}