Skip to content

Commit

Permalink
fix: integrate new changes to commits controller
Browse files Browse the repository at this point in the history
  • Loading branch information
2KAbhishek committed Jan 22, 2024
1 parent bff5dd8 commit 93fd429
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/gui/controllers/local_commits_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,10 @@ func (self *LocalCommitsController) GetKeybindings(opts types.KeybindingsOpts) [
},
{
Key: opts.GetKey(opts.Config.Commits.AmendAttributeMenu),
Handler: self.checkSelected(self.amendAttribute),
GetDisabledReason: self.callGetDisabledReasonFuncWithSelectedCommit(self.getDisabledReasonForAmendTo),
Description: self.c.Tr.AmendAttributeMenu, OpensMenu: true,
Handler: self.withItem(self.amendAttribute),
GetDisabledReason: self.require(self.singleItemSelected((self.canAmend))),
Description: self.c.Tr.AmendAttributeMenu,
OpensMenu: true,
},
{
Key: opts.GetKey(opts.Config.Commits.RevertCommit),
Expand Down

0 comments on commit 93fd429

Please sign in to comment.