summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/git_flow_controller.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-05-08 14:23:32 +1000
committerJesse Duffield <jessedduffield@gmail.com>2022-05-08 14:26:18 +1000
commit6f8063217ddf132dca36b75affaa7f7273f89d9d (patch)
tree871c1b76adf464b11fe04c43bbd2a4a7ac5d452e /pkg/gui/controllers/git_flow_controller.go
parent125e948d82c33226f92a1ebe18361633116370d3 (diff)
rename displayString to label for menu items
Diffstat (limited to 'pkg/gui/controllers/git_flow_controller.go')
-rw-r--r--pkg/gui/controllers/git_flow_controller.go26
1 files changed, 13 insertions, 13 deletions
diff --git a/pkg/gui/controllers/git_flow_controller.go b/pkg/gui/controllers/git_flow_controller.go
index a0b0f3074..2504ad2dd 100644
--- a/pkg/gui/controllers/git_flow_controller.go
+++ b/pkg/gui/controllers/git_flow_controller.go
@@ -64,30 +64,30 @@ func (self *GitFlowController) handleCreateGitFlowMenu(branch *models.Branch) er
Items: []*types.MenuItem{
{
// not localising here because it's one to one with the actual git flow commands
- DisplayString: fmt.Sprintf("finish branch '%s'", branch.Name),
+ Label: fmt.Sprintf("finish branch '%s'", branch.Name),
OnPress: func() error {
return self.gitFlowFinishBranch(branch.Name)
},
},
{
- DisplayString: "start feature",
- OnPress: startHandler("feature"),
- Key: 'f',
+ Label: "start feature",
+ OnPress: startHandler("feature"),
+ Key: 'f',
},
{
- DisplayString: "start hotfix",
- OnPress: startHandler("hotfix"),
- Key: 'h',
+ Label: "start hotfix",
+ OnPress: startHandler("hotfix"),
+ Key: 'h',
},
{
- DisplayString: "start bugfix",
- OnPress: startHandler("bugfix"),
- Key: 'b',
+ Label: "start bugfix",
+ OnPress: startHandler("bugfix"),
+ Key: 'b',
},
{
- DisplayString: "start release",
- OnPress: startHandler("release"),
- Key: 'r',
+ Label: "start release",
+ OnPress: startHandler("release"),
+ Key: 'r',
},
},
})