Delete an item from a collection
(
&mut self,
collection_id: Uuid,
node_id: Uuid,
cx: &mut Context<Self>,
)
| 517 | }; |
| 518 | if let TabContent::Request { |
| 519 | method_dropdown, |
| 520 | request_view, |
| 521 | .. |
| 522 | } = &tab.content |
| 523 | { |
| 524 | let method_dropdown = method_dropdown.clone(); |
| 525 | let request_view = request_view.clone(); |
| 526 | |
| 527 | method_dropdown.update(cx, |state, cx| { |
| 528 | state.set_method(parsed.method, cx); |
| 529 | }); |
| 530 | request_view.update(cx, |view, cx| { |
| 531 | view.apply_parsed_curl(parsed, window, cx); |