From d4591ea64adab9732e0b94b1f91508306cba4bb9 Mon Sep 17 00:00:00 2001 From: "gcp-cherry-pick-bot[bot]" <98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com> Date: Fri, 9 May 2025 17:04:33 -0400 Subject: [PATCH] git_ui: Fix co-author tooltip message (cherry-pick #30426) (#30429) Cherry-picked git_ui: Fix co-author tooltip message (#30426) It should show "Remove co-authored-by" when hovering on co-author is already added state. And should say "Add co-authored-by" when it is at disabled state. Release Notes: - N/A Co-authored-by: Ben Kunkle Co-authored-by: Smit Barmase Co-authored-by: Ben Kunkle --- crates/git_ui/src/git_panel.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs index 5085ed87042b78cf9048817b0f44cbce4ed905c7..738e0f62a3e240c9f7c71300d6fa04add4cad917 100644 --- a/crates/git_ui/src/git_panel.rs +++ b/crates/git_ui/src/git_panel.rs @@ -2765,9 +2765,9 @@ impl GitPanel { let potential_co_authors = self.potential_co_authors(cx); let (tooltip_label, icon) = if self.add_coauthors { - ("Add co-authored-by", IconName::UserCheck) - } else { ("Remove co-authored-by", IconName::Person) + } else { + ("Add co-authored-by", IconName::UserCheck) }; if potential_co_authors.is_empty() {