Add work editor dialog skeleton

This commit is contained in:
Elias Projahn 2020-09-28 16:00:51 +02:00
parent 44cb9fa410
commit ed225f61ad
5 changed files with 578 additions and 4 deletions

View file

@ -44,9 +44,15 @@ impl Window {
})
);
action!(result.window, "add-work", |_, _| {
println!("TODO: Add work.");
});
action!(
result.window,
"add-work",
clone!(@strong result => move |_, _| {
WorkEditor::new(result.db.clone(), &result.window, None, |work| {
println!("{:?}", work);
}).show();
})
);
action!(
result.window,