Use same commit button text in panel and modal (#25988)

Release Notes:

- Fixed inconsistencies in commit button text between Git panel and modal.
This commit is contained in:
Joseph T. Lyons authored and GitHub committed 2025-03-04 03:03:34 +00:00
1 parent 4b88d186b6
commit a2bdbe8674
2 files changed
+10 -10

No files matched your search

+1 -5
View File
@@ -267,11 +267,7 @@ impl CommitModal {
} else {
"Commit changes to tracked files"
};
let title = if git_panel.has_staged_changes() {
"Commit"
} else {
"Commit All"
};
let title = git_panel.commit_button_title();
let co_authors = git_panel.render_co_authors(cx);
(branch, tooltip, title, co_authors)
});