Fix add issue page
This commit is contained in:
parent
e7486a32b1
commit
1c666dc26a
@ -78,7 +78,16 @@ pub fn render(model: &Model) -> Vec<Node<Msg>> {
|
|||||||
} else {
|
} else {
|
||||||
vec![
|
vec![
|
||||||
navbar_left_item("Search issues", Icon::Search, None, None),
|
navbar_left_item("Search issues", Icon::Search, None, None),
|
||||||
navbar_left_item("Create Issue", Icon::Plus, Some("/add-issue"), None),
|
navbar_left_item(
|
||||||
|
"Create Issue",
|
||||||
|
Icon::Plus,
|
||||||
|
Some("/add-issue"),
|
||||||
|
Some(mouse_ev("click", |ev| {
|
||||||
|
ev.stop_propagation();
|
||||||
|
ev.prevent_default();
|
||||||
|
Msg::ChangePage(Page::AddIssue)
|
||||||
|
})),
|
||||||
|
),
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
let go_to_profile = mouse_ev("click", move |ev| {
|
let go_to_profile = mouse_ev("click", move |ev| {
|
||||||
|
Loading…
Reference in New Issue
Block a user