@@ -39,16 +39,16 @@ func NewModeHelper(
3939}
4040
4141type ModeStatus struct {
42- IsActive func () bool
43- Description func () string
44- Reset func () error
42+ IsActive func () bool
43+ InfoLabel func () string
44+ Reset func () error
4545}
4646
4747func (self * ModeHelper ) Statuses () []ModeStatus {
4848 return []ModeStatus {
4949 {
5050 IsActive : self .c .Modes ().Diffing .Active ,
51- Description : func () string {
51+ InfoLabel : func () string {
5252 return self .withResetButton (
5353 fmt .Sprintf (
5454 "%s %s" ,
@@ -62,14 +62,14 @@ func (self *ModeHelper) Statuses() []ModeStatus {
6262 },
6363 {
6464 IsActive : self .c .Git ().Patch .PatchBuilder .Active ,
65- Description : func () string {
65+ InfoLabel : func () string {
6666 return self .withResetButton (self .c .Tr .BuildingPatch , style .FgYellow .SetBold ())
6767 },
6868 Reset : self .patchBuildingHelper .Reset ,
6969 },
7070 {
7171 IsActive : self .c .Modes ().Filtering .Active ,
72- Description : func () string {
72+ InfoLabel : func () string {
7373 filterContent := lo .Ternary (self .c .Modes ().Filtering .GetPath () != "" , self .c .Modes ().Filtering .GetPath (), self .c .Modes ().Filtering .GetAuthor ())
7474 return self .withResetButton (
7575 fmt .Sprintf (
@@ -84,7 +84,7 @@ func (self *ModeHelper) Statuses() []ModeStatus {
8484 },
8585 {
8686 IsActive : self .c .Modes ().MarkedBaseCommit .Active ,
87- Description : func () string {
87+ InfoLabel : func () string {
8888 return self .withResetButton (
8989 self .c .Tr .MarkedBaseCommitStatus ,
9090 style .FgCyan ,
@@ -94,7 +94,7 @@ func (self *ModeHelper) Statuses() []ModeStatus {
9494 },
9595 {
9696 IsActive : self .c .Modes ().CherryPicking .Active ,
97- Description : func () string {
97+ InfoLabel : func () string {
9898 copiedCount := len (self .c .Modes ().CherryPicking .CherryPickedCommits )
9999 text := self .c .Tr .CommitsCopied
100100 if copiedCount == 1 {
@@ -116,7 +116,7 @@ func (self *ModeHelper) Statuses() []ModeStatus {
116116 IsActive : func () bool {
117117 return ! self .suppressRebasingMode && self .c .Git ().Status .WorkingTreeState ().Any ()
118118 },
119- Description : func () string {
119+ InfoLabel : func () string {
120120 workingTreeState := self .c .Git ().Status .WorkingTreeState ()
121121 return self .withResetButton (
122122 workingTreeState .Title (self .c .Tr ), style .FgYellow ,
@@ -128,7 +128,7 @@ func (self *ModeHelper) Statuses() []ModeStatus {
128128 IsActive : func () bool {
129129 return self .c .Model ().BisectInfo .Started ()
130130 },
131- Description : func () string {
131+ InfoLabel : func () string {
132132 return self .withResetButton (self .c .Tr .Bisect .Bisecting , style .FgGreen )
133133 },
134134 Reset : self .bisectHelper .Reset ,
0 commit comments