From ec0f2fa79aa2d61406c5105262528596ab8b21a6 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Thu, 19 Jun 2025 11:09:53 -0300 Subject: [PATCH] agent: Fix button ids for resetting keys in OpenAI settings (#33032) These "Reset API Key" and "Reset API URL" button had the same ids, so therefore, they weren't working. Release Notes: - N/A --- crates/language_models/src/provider/open_ai.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/language_models/src/provider/open_ai.rs b/crates/language_models/src/provider/open_ai.rs index db8ba70d71..f6e1ea559a 100644 --- a/crates/language_models/src/provider/open_ai.rs +++ b/crates/language_models/src/provider/open_ai.rs @@ -905,7 +905,7 @@ impl Render for ConfigurationView { })), ) .child( - Button::new("reset-key", "Reset API Key") + Button::new("reset-api-key", "Reset API Key") .label_size(LabelSize::Small) .icon(IconName::Undo) .icon_size(IconSize::Small) @@ -938,7 +938,7 @@ impl Render for ConfigurationView { .child(Label::new("Custom API URL configured.")), ) .child( - Button::new("reset-key", "Reset API URL") + Button::new("reset-api-url", "Reset API URL") .label_size(LabelSize::Small) .icon(IconName::Undo) .icon_size(IconSize::Small)