mirror of
https://github.com/lennart-k/rustical.git
synced 2026-01-31 08:58:21 +00:00
frontend: Add form to create addressbook
This commit is contained in:
@@ -96,7 +96,7 @@ pub async fn route_create_calendar<C: CalendarStore>(
|
||||
description,
|
||||
color,
|
||||
subscription_url,
|
||||
principal: user.id,
|
||||
principal: user.id.to_owned(),
|
||||
components: comps,
|
||||
order: 0,
|
||||
timezone_id: None,
|
||||
@@ -107,7 +107,7 @@ pub async fn route_create_calendar<C: CalendarStore>(
|
||||
};
|
||||
|
||||
store.insert_calendar(cal).await?;
|
||||
Ok(Redirect::to(&id).into_response())
|
||||
Ok(Redirect::to(&format!("/frontend/user/{}/calendar/{}", user.id, id)).into_response())
|
||||
}
|
||||
|
||||
pub async fn route_calendar_restore<CS: CalendarStore>(
|
||||
|
||||
Reference in New Issue
Block a user