Skip to content

Commit 93fd429

Browse files
committed
fix: integrate new changes to commits controller
1 parent bff5dd8 commit 93fd429

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/gui/controllers/local_commits_controller.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,10 @@ func (self *LocalCommitsController) GetKeybindings(opts types.KeybindingsOpts) [
190190
},
191191
{
192192
Key: opts.GetKey(opts.Config.Commits.AmendAttributeMenu),
193-
Handler: self.checkSelected(self.amendAttribute),
194-
GetDisabledReason: self.callGetDisabledReasonFuncWithSelectedCommit(self.getDisabledReasonForAmendTo),
195-
Description: self.c.Tr.AmendAttributeMenu, OpensMenu: true,
193+
Handler: self.withItem(self.amendAttribute),
194+
GetDisabledReason: self.require(self.singleItemSelected((self.canAmend))),
195+
Description: self.c.Tr.AmendAttributeMenu,
196+
OpensMenu: true,
196197
},
197198
{
198199
Key: opts.GetKey(opts.Config.Commits.RevertCommit),

0 commit comments

Comments
 (0)