cleanup routes, cleanup root components

This commit is contained in:
Christoph Kluge
2025-12-15 15:10:10 +01:00
parent c5aff1a2ca
commit d56b0e93db
6 changed files with 21 additions and 43 deletions

View File

@@ -120,11 +120,6 @@ func setupClusterStatusRoute(i InfoType, r *http.Request) InfoType {
i["id"] = vars["cluster"]
i["cluster"] = vars["cluster"]
i["displayType"] = "DASHBOARD"
from, to := r.URL.Query().Get("from"), r.URL.Query().Get("to")
if from != "" || to != "" {
i["from"] = from
i["to"] = to
}
return i
}
@@ -133,11 +128,6 @@ func setupClusterDetailRoute(i InfoType, r *http.Request) InfoType {
i["id"] = vars["cluster"]
i["cluster"] = vars["cluster"]
i["displayType"] = "DETAILS"
from, to := r.URL.Query().Get("from"), r.URL.Query().Get("to")
if from != "" || to != "" {
i["from"] = from
i["to"] = to
}
return i
}
@@ -145,12 +135,7 @@ func setupDashboardRoute(i InfoType, r *http.Request) InfoType {
vars := mux.Vars(r)
i["id"] = vars["cluster"]
i["cluster"] = vars["cluster"]
i["displayType"] = "PUBLIC"
from, to := r.URL.Query().Get("from"), r.URL.Query().Get("to")
if from != "" || to != "" {
i["from"] = from
i["to"] = to
}
i["displayType"] = "PUBLIC" // Used in Main Template
return i
}