Migrate single node view, fix route condition

This commit is contained in:
Christoph Kluge
2025-06-20 17:47:06 +02:00
parent dceb92ba8e
commit d731611e0c
3 changed files with 51 additions and 43 deletions

View File

@@ -161,7 +161,7 @@ func setupNodeRoute(i InfoType, r *http.Request) InfoType {
i["hostname"] = vars["hostname"]
i["id"] = fmt.Sprintf("%s (%s)", vars["cluster"], vars["hostname"])
from, to := r.URL.Query().Get("from"), r.URL.Query().Get("to")
if from != "" || to != "" {
if from != "" && to != "" {
i["from"] = from
i["to"] = to
}