minor performance improvement... and makes rust happy :-)
This commit is contained in:
parent
9277d5fbaa
commit
2bac41d641
@ -180,7 +180,7 @@ async fn view(State(db): State<Arc<SqlitePool>>, session: Session, axum::extract
|
||||
"Um einen Standort zu wählen, auf einen Punkt in der Karte klicken"
|
||||
}
|
||||
}
|
||||
@if let (Some(_), Some(_)) = (station.lat, station.lng) {
|
||||
@if station.lat.is_some() && station.lng.is_some() {
|
||||
a href=(format!("/station/{}/location-clear", station.id))
|
||||
onclick="return confirm('Bist du sicher, dass du den Standort der Station löschen willst? Das kann _NICHT_ mehr rückgängig gemacht werden.');"{
|
||||
"Standort löschen"
|
||||
|
Loading…
x
Reference in New Issue
Block a user