From 93cab33fb9e7ddee8ac69aabf922212bff376d79 Mon Sep 17 00:00:00 2001 From: soukainna Date: Fri, 19 May 2023 10:19:06 +0200 Subject: [PATCH] update vehicle --- renderer/vehicle-management.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/renderer/vehicle-management.go b/renderer/vehicle-management.go index 35558dd..217d53c 100644 --- a/renderer/vehicle-management.go +++ b/renderer/vehicle-management.go @@ -53,11 +53,12 @@ func (renderer *Renderer) VehiclesFleetDisplay(w http.ResponseWriter, r *http.Re renderer.Render("fleet display vehicle", w, r, files, state) } -func (renderer *Renderer) VehiclesFleetUpdate(w http.ResponseWriter, r *http.Request, vehicle any) { +func (renderer *Renderer) VehiclesFleetUpdate(w http.ResponseWriter, r *http.Request, vehicle any, vehicle_types []string) { files := renderer.ThemeConfig.GetStringSlice("views.vehicles_management.fleet_update.files") state := NewState(r, renderer.ThemeConfig, vehiclesmanagementMenu) state.ViewState = map[string]any{ - "vehicle": vehicle, + "vehicle": vehicle, + "vehicle_types": vehicle_types, } renderer.Render("fleet display vehicle", w, r, files, state)