Hook up submit

This commit is contained in:
Joseph T. Lyons
2023-12-06 19:10:45 -05:00
parent 110612bf26
commit 0885fa67fc

View File

@@ -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.",