Initialize inputs lazily
(&mut self, window: &mut Window, cx: &mut Context<Self>)
| 364 | .unwrap_or_default(), |
| 365 | token: self |
| 366 | .token_input |
| 367 | .as_ref() |
| 368 | .map(|i| i.read(cx).text().to_string()) |
| 369 | .unwrap_or_default(), |
| 370 | api_key_name: self |
| 371 | .api_key_name_input |
| 372 | .as_ref() |
| 373 | .map(|i| i.read(cx).text().to_string()) |
| 374 | .unwrap_or_default(), |
| 375 | api_key_value: self |
| 376 | .api_key_value_input |
| 377 | .as_ref() |
| 378 | .map(|i| i.read(cx).text().to_string()) |
| 379 | .unwrap_or_default(), |
| 380 | api_key_in_header: self.api_key_location == ApiKeyLocation::Header, |
| 381 | } |
| 382 | } |