(
&mut self,
collection_id: Uuid,
parent_folder_id: Option<Uuid>,
name: &str,
cx: &mut Context<Self>,
)
| 546 | }) |
| 547 | .detach(); |
| 548 | self.history_search = Some(input); |
| 549 | } |
| 550 | if self.collections_search.is_none() { |
| 551 | let input = |
| 552 | cx.new(|cx| InputState::new(window, cx).placeholder("Search collections...")); |
| 553 | cx.subscribe_in(&input, window, |_, _, event, _, cx| { |
| 554 | if matches!(event, gpui_component::input::InputEvent::Change) { |
| 555 | cx.notify(); |
| 556 | } |
| 557 | }) |
| 558 | .detach(); |
| 559 | self.collections_search = Some(input); |
| 560 | } |
| 561 | } |
no test coverage detected