Fix add issue page

This commit is contained in:
eraden 2021-01-20 00:18:34 +01:00
parent e7486a32b1
commit 1c666dc26a

View File

@ -78,7 +78,16 @@ pub fn render(model: &Model) -> Vec<Node<Msg>> {
} else {
vec![
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| {