git: Fix git modal and panel amend tooltip (#39008)
Closes #38783 Release Notes: - Fixed the amend button tooltip shortcut in Git panel and modal.
This commit is contained in:
@@ -455,7 +455,11 @@ impl CommitModal {
|
||||
if can_commit {
|
||||
Tooltip::with_meta_in(
|
||||
tooltip,
|
||||
Some(&git::Commit),
|
||||
Some(if is_amend_pending {
|
||||
&git::Amend
|
||||
} else {
|
||||
&git::Commit
|
||||
}),
|
||||
format!(
|
||||
"git commit{}{}",
|
||||
if is_amend_pending { " --amend" } else { "" },
|
||||
|
||||
@@ -3458,7 +3458,7 @@ impl GitPanel {
|
||||
if can_commit {
|
||||
Tooltip::with_meta_in(
|
||||
tooltip,
|
||||
Some(&git::Commit),
|
||||
Some(if amend { &git::Amend } else { &git::Commit }),
|
||||
format!(
|
||||
"git commit{}{}",
|
||||
if amend { " --amend" } else { "" },
|
||||
|
||||
Reference in New Issue
Block a user