Hook up submit
This commit is contained in:
@@ -307,11 +307,8 @@ impl Render for FeedbackModal {
|
|||||||
Button::new("send_feedback", "Send Feedback")
|
Button::new("send_feedback", "Send Feedback")
|
||||||
.color(Color::Accent)
|
.color(Color::Accent)
|
||||||
.style(ButtonStyle::Filled)
|
.style(ButtonStyle::Filled)
|
||||||
// .on_click(|_, cx| {
|
// TODO - error handling - show modal on error
|
||||||
// cx.build_view(|cx, this| {
|
.on_click(cx.listener(|this, _, cx| {let _ = this.submit(cx);}))
|
||||||
// FeedbackModal::submit(cx)
|
|
||||||
// })
|
|
||||||
// })
|
|
||||||
.tooltip(|cx| {
|
.tooltip(|cx| {
|
||||||
Tooltip::with_meta(
|
Tooltip::with_meta(
|
||||||
"Submit feedback to the Zed team.",
|
"Submit feedback to the Zed team.",
|
||||||
|
|||||||
Reference in New Issue
Block a user