diff options
Diffstat (limited to 'windowSummary.go')
| -rw-r--r-- | windowSummary.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/windowSummary.go b/windowSummary.go index 4b60413..a5c4879 100644 --- a/windowSummary.go +++ b/windowSummary.go @@ -6,6 +6,7 @@ import ( "go.wit.com/gui" "go.wit.com/lib/gadgets" + "go.wit.com/log" ) type patchSummary struct { @@ -74,8 +75,14 @@ func (r *patchesWindow) submitPatchesBox(box *gui.Node) *patchSummary { s.submitB.Disable() } } - s.submitB = s.grid.NewButton("Create", func() { - doSubmit(s.reason.String()) + s.submitB = s.grid.NewButton("Submit", func() { + pset, err := me.forge.SubmitDevelPatchSet(s.reason.String()) + if err != nil { + log.Info(err) + return + } + line := "somedate some reason Author: me" + pset.GitAuthorEmail + me.patchWin.addPatchset(line) }) /* |
