1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

rename displayString to label for menu items

This commit is contained in:
Jesse Duffield
2022-05-08 14:23:32 +10:00
parent 125e948d82
commit 6f8063217d
23 changed files with 126 additions and 122 deletions

View File

@ -19,7 +19,7 @@ func (self *FilesController) createResetMenu() error {
menuItems := []*types.MenuItem{
{
DisplayStrings: []string{
LabelColumns: []string{
self.c.Tr.LcDiscardAllChangesToAllFiles,
red.Sprint(nukeStr),
},
@ -35,7 +35,7 @@ func (self *FilesController) createResetMenu() error {
Tooltip: self.c.Tr.NukeDescription,
},
{
DisplayStrings: []string{
LabelColumns: []string{
self.c.Tr.LcDiscardAnyUnstagedChanges,
red.Sprint("git checkout -- ."),
},
@ -50,7 +50,7 @@ func (self *FilesController) createResetMenu() error {
Key: 'u',
},
{
DisplayStrings: []string{
LabelColumns: []string{
self.c.Tr.LcDiscardUntrackedFiles,
red.Sprint("git clean -fd"),
},
@ -65,7 +65,7 @@ func (self *FilesController) createResetMenu() error {
Key: 'c',
},
{
DisplayStrings: []string{
LabelColumns: []string{
self.c.Tr.LcSoftReset,
red.Sprint("git reset --soft HEAD"),
},
@ -80,7 +80,7 @@ func (self *FilesController) createResetMenu() error {
Key: 's',
},
{
DisplayStrings: []string{
LabelColumns: []string{
"mixed reset",
red.Sprint("git reset --mixed HEAD"),
},
@ -95,7 +95,7 @@ func (self *FilesController) createResetMenu() error {
Key: 'm',
},
{
DisplayStrings: []string{
LabelColumns: []string{
self.c.Tr.LcHardReset,
red.Sprint("git reset --hard HEAD"),
},