()
| 232 | SelectState::new( |
| 233 | auth_type_items, |
| 234 | Some(gpui_component::IndexPath::new(0)), |
| 235 | window, |
| 236 | cx, |
| 237 | ) |
| 238 | }); |
| 239 | |
| 240 | // Subscribe to auth type selection changes |
| 241 | cx.subscribe( |
| 242 | &auth_type_select, |
| 243 | |this, _, event: &SelectEvent<Vec<AuthType>>, cx| { |
| 244 | if let SelectEvent::Confirm(Some(value)) = event { |
| 245 | this.auth_type = *value; |
| 246 | cx.notify(); |
| 247 | } |
| 248 | }, |
| 249 | ) |
| 250 | .detach(); |
| 251 | |
| 252 | // Create API key location select state |
| 253 | let api_key_location_items: Vec<ApiKeyLocation> = ApiKeyLocation::all().to_vec(); |
| 254 | let api_key_location_select = cx.new(|cx| { |
nothing calls this directly
no outgoing calls
no test coverage detected