Scheduled recipes can now be removed

This commit is contained in:
Greg Burri 2025-02-12 00:22:50 +01:00
parent 084be9fb00
commit a3f2b4a86a
8 changed files with 64 additions and 7 deletions

View file

@ -267,16 +267,11 @@ pub fn setup_page(recipe_id: i64) -> Result<(), JsValue> {
let body = ron_api::Id { id: recipe_id };
let _ = request::delete::<(), _>("recipe/remove", body).await;
window().location().set_href("/").unwrap();
// by_id::<Element>(&format!("group-{}", group_id)).remove();
}
});
})
.forget();
// let group_dropzone: Element = selector(".dropzone-group");
// setup_dragzone_events(&group_dropzone);
// Load initial groups, steps and ingredients.
{
spawn_local(async move {