Current recipe id was not set
This commit is contained in:
parent
812ba9dc3b
commit
9dccd553bc
5 changed files with 28 additions and 12 deletions
|
|
@ -53,8 +53,13 @@ pub async fn home_page(
|
|||
) -> Result<impl IntoResponse> {
|
||||
Ok(Html(
|
||||
HomeTemplate {
|
||||
recipes: Recipes::new(connection, &context.user, context.tr.current_lang_code())
|
||||
.await?,
|
||||
recipes: Recipes::new(
|
||||
connection,
|
||||
&context.user,
|
||||
context.tr.current_lang_code(),
|
||||
None,
|
||||
)
|
||||
.await?,
|
||||
context,
|
||||
}
|
||||
.render()?,
|
||||
|
|
@ -79,8 +84,13 @@ pub async fn dev_panel(
|
|||
if context.user.is_some() && context.user.as_ref().unwrap().is_admin {
|
||||
Ok(Html(
|
||||
DevPanelTemplate {
|
||||
recipes: Recipes::new(connection, &context.user, context.tr.current_lang_code())
|
||||
.await?,
|
||||
recipes: Recipes::new(
|
||||
connection,
|
||||
&context.user,
|
||||
context.tr.current_lang_code(),
|
||||
None,
|
||||
)
|
||||
.await?,
|
||||
context,
|
||||
log,
|
||||
current_log_file: log_file.log_file.clone(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue