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 <ben@zed.dev>
This commit is contained in:
parent
65b13968a2
commit
bef25c7290
1 changed files with 2 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue