Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Hook up submit

Joseph T. Lyons0885fa67fc2a
diff --git a/crates/feedback2/src/feedback_modal.rs b/crates/feedback2/src/feedback_modal.rs
index 88cee2852be..f67fa2f1337 100644
--- a/crates/feedback2/src/feedback_modal.rs
+++ b/crates/feedback2/src/feedback_modal.rs
@@ -307,11 +307,8 @@ impl Render for FeedbackModal {
Button::new("send_feedback", "Send Feedback")
.color(Color::Accent)
.style(ButtonStyle::Filled)
- // .on_click(|_, cx| {
- // cx.build_view(|cx, this| {
- // FeedbackModal::submit(cx)
- // })
- // })
+ // TODO - error handling - show modal on error
+ .on_click(cx.listener(|this, _, cx| {let _ = this.submit(cx);}))
.tooltip(|cx| {
Tooltip::with_meta(
"Submit feedback to the Zed team.",