summaryrefslogtreecommitdiff
path: root/newRepo.go
diff options
context:
space:
mode:
Diffstat (limited to 'newRepo.go')
-rw-r--r--newRepo.go33
1 files changed, 16 insertions, 17 deletions
diff --git a/newRepo.go b/newRepo.go
index f1cdedc..0932ed6 100644
--- a/newRepo.go
+++ b/newRepo.go
@@ -89,7 +89,6 @@ func (r *RepoList) AddRepo(pb *gitpb.Repo) (*RepoRow, error) {
newRepo.currentName = r.reposgrid.NewLabel("")
newRepo.currentVersion = r.reposgrid.NewLabel("")
-
newRepo.endBox = r.reposgrid.NewHorizontalBox("HBOX")
newRepo.endBox.NewButton("Configure", func() {
newRepo.Status.Toggle()
@@ -126,23 +125,23 @@ func (r *RepoList) AddRepo(pb *gitpb.Repo) (*RepoRow, error) {
})
/*
- if strings.HasPrefix(newRepo.GoPath(), "go.wit.com/apps") {
- var showBuildB bool = false
- switch newRepo.Status.RepoType() {
- case "binary":
- // log.Info("showing compile here button")
- showBuildB = true
- case "library":
- // log.Info("library here. Hide()")
- default:
- // log.Info("unknown RepoType", newRepo.Status.RepoType())
- }
- if showBuildB {
- newRepo.endBox.NewButton("build", func() {
- newRepo.Status.Build()
- })
+ if strings.HasPrefix(newRepo.GoPath(), "go.wit.com/apps") {
+ var showBuildB bool = false
+ switch newRepo.Status.RepoType() {
+ case "binary":
+ // log.Info("showing compile here button")
+ showBuildB = true
+ case "library":
+ // log.Info("library here. Hide()")
+ default:
+ // log.Info("unknown RepoType", newRepo.Status.RepoType())
+ }
+ if showBuildB {
+ newRepo.endBox.NewButton("build", func() {
+ newRepo.Status.Build()
+ })
+ }
}
- }
*/
r.reposgrid.NextRow()
newRepo.Status.InitOk = true