[TASK] translate alerts

This commit is contained in:
Marie Birner
2023-10-23 22:52:11 +02:00
parent 52b245b14e
commit 8ebc06e445
5 changed files with 13 additions and 13 deletions

View File

@ -133,7 +133,7 @@ async fn fixed<'r>(
user_id_fixed: coxuser.id as i32,
};
match boatdamage.fixed(db, boatdamage_fixed).await {
Ok(_) => Flash::success(Redirect::to("/boatdamage"), "Successfully fixed the boat."),
Ok(_) => Flash::success(Redirect::to("/boatdamage"), "Bootsschaden behoben."),
Err(e) => Flash::error(Redirect::to("/boatdamage"), format!("Error: {e}")),
}
}
@ -158,7 +158,7 @@ async fn verified<'r>(
match boatdamage.verified(db, boatdamage_verified).await {
Ok(_) => Flash::success(
Redirect::to("/boatdamage"),
"Successfully verified the boat.",
"Bootsschaden verifiziert",
),
Err(e) => Flash::error(Redirect::to("/boatdamage"), format!("Error: {e}")),
}