acp: Add tooltips for auth methods with descriptions when available (#40098)
Release Notes: - acp: Provide auth method descriptions in the UI when available Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
This commit is contained in:
co-authored by
Bennet Bo Fenner
parent
ff50f48980
commit
fdf801d90f
@@ -3283,6 +3283,12 @@ impl AcpThreadView {
|
||||
this.style(ButtonStyle::Outlined)
|
||||
}
|
||||
})
|
||||
.when_some(
|
||||
method.description.clone(),
|
||||
|this, description| {
|
||||
this.tooltip(Tooltip::text(description))
|
||||
},
|
||||
)
|
||||
.on_click({
|
||||
cx.listener(move |this, _, window, cx| {
|
||||
telemetry::event!(
|
||||
|
||||
Reference in New Issue
Block a user