test out buttons in PB tables
This commit is contained in:
parent
31d2ac1259
commit
52e08e6077
|
@ -106,6 +106,10 @@ func makeReposWin() *gadgets.GenericWindow {
|
|||
|
||||
// display the protobuf
|
||||
t = addWindowPB(insertWin, found)
|
||||
f := func(id int) {
|
||||
log.Info("got to MachinesTable.Custom() id =", id)
|
||||
}
|
||||
t.Custom(f)
|
||||
log.Info("table has uuid", t.GetUuid())
|
||||
})
|
||||
|
||||
|
@ -406,6 +410,11 @@ func addWindowPB(win *gadgets.GenericWindow, pb *gitpb.Repos) *gitpb.ReposTable
|
|||
t.AddUserVersion()
|
||||
t.AddCurrentBranchName()
|
||||
t.AddState()
|
||||
f := func(repo *gitpb.Repo) string {
|
||||
log.Info("repo =", repo.GetGoPath(), repo.GetCurrentVersion())
|
||||
return repo.GetGoPath()
|
||||
}
|
||||
t.AddButtonFunc("cur version", f)
|
||||
t.ShowTable()
|
||||
return t
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue