diff options
| author | Jeff Carr <[email protected]> | 2025-03-04 15:45:52 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-04 15:45:52 -0600 |
| commit | aa229b8778d3e17fb7551d33772cc82da7cde6c0 (patch) | |
| tree | cd6a2b92909cda241e87f8772936b1d8f5cd2aa7 /doGui.go | |
| parent | 2098040d62368e748bb8996ea37c580f5edc33bb (diff) | |
insert PB table seems to work
Diffstat (limited to 'doGui.go')
| -rw-r--r-- | doGui.go | 35 |
1 files changed, 0 insertions, 35 deletions
@@ -354,41 +354,6 @@ func makeStandardReposWindow(title string, pb *gitpb.Repos) (*gitpb.ReposTable, return t, box } -func makeWritableWindow(pb *gitpb.Repos) (*gadgets.GenericWindow, *gitpb.ReposTable) { - win := gadgets.NewGenericWindow("Repos You have write access to", "Configure") - t := pb.NewTable("testForgeRepos") - t.NewUuid() - - grid := win.Group.RawGrid() - grid.NewButton("git pull", func() { - log.Info("todo: run git pull on each repo") - }) - - grid.NewButton("do repos.ReScan()", func() { - t.Update() - }) - - tbox := win.Bottom.Box() - t.SetParent(tbox) - - sf := t.AddStringFunc("repo", func(r *gitpb.Repo) string { - return r.GetGoPath() - }) - sf.Custom = func(r *gitpb.Repo) { - log.Info("do button click on", r.GetGoPath()) - } - t.AddTimeFunc("age", func(repo *gitpb.Repo) time.Time { - return repo.NewestTime() - }) - t.AddMasterVersion() - t.AddDevelVersion() - t.AddUserVersion() - t.AddCurrentBranchName() - t.AddState() - t.ShowTable() - return win, t -} - func findMergeToDevel() *gitpb.Repos { found := gitpb.NewRepos() |
