From 034c11cc96dc1e1995ab06e3820a183b6291e1eb Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Wed, 6 Dec 2023 19:11:03 -0500 Subject: [PATCH] Hook up community repo button --- crates/feedback2/src/feedback_modal.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/feedback2/src/feedback_modal.rs b/crates/feedback2/src/feedback_modal.rs index f67fa2f133..50bd75f6eb 100644 --- a/crates/feedback2/src/feedback_modal.rs +++ b/crates/feedback2/src/feedback_modal.rs @@ -245,6 +245,8 @@ impl Render for FeedbackModal { // let open_community_issues = // cx.listener(|_, _, cx| cx.dispatch_action(Box::new(OpenZedCommunityRepo))); // let open_community_discussions = cx.listener(|_, _, cx| cx.emit(DismissEvent)); + let open_community_repo = + cx.listener(|_, _, cx| cx.dispatch_action(Box::new(OpenZedCommunityRepo))); v_stack() .elevation_3(cx) @@ -294,7 +296,7 @@ impl Render for FeedbackModal { .child(Button::new("community_repo", "Community Repo") .style(ButtonStyle::Filled) .color(Color::Muted) - // .on_click(cx.dispatch_action(Box::new(OpenZedCommunityRepo))) + .on_click(open_community_repo) ) .child(h_stack().justify_between().gap_1() .child(