Hook up community repo button
This commit is contained in:
parent
0885fa67fc
commit
034c11cc96
1 changed files with 3 additions and 1 deletions
|
@ -245,6 +245,8 @@ impl Render for FeedbackModal {
|
||||||
// let open_community_issues =
|
// let open_community_issues =
|
||||||
// cx.listener(|_, _, cx| cx.dispatch_action(Box::new(OpenZedCommunityRepo)));
|
// cx.listener(|_, _, cx| cx.dispatch_action(Box::new(OpenZedCommunityRepo)));
|
||||||
// let open_community_discussions = cx.listener(|_, _, cx| cx.emit(DismissEvent));
|
// 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()
|
v_stack()
|
||||||
.elevation_3(cx)
|
.elevation_3(cx)
|
||||||
|
@ -294,7 +296,7 @@ impl Render for FeedbackModal {
|
||||||
.child(Button::new("community_repo", "Community Repo")
|
.child(Button::new("community_repo", "Community Repo")
|
||||||
.style(ButtonStyle::Filled)
|
.style(ButtonStyle::Filled)
|
||||||
.color(Color::Muted)
|
.color(Color::Muted)
|
||||||
// .on_click(cx.dispatch_action(Box::new(OpenZedCommunityRepo)))
|
.on_click(open_community_repo)
|
||||||
)
|
)
|
||||||
.child(h_stack().justify_between().gap_1()
|
.child(h_stack().justify_between().gap_1()
|
||||||
.child(
|
.child(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue