From 56acb3b763a6458d2f6da32cb858c24cbabc4bf8 Mon Sep 17 00:00:00 2001 From: cclohmar Date: Mon, 15 Jun 2026 05:18:54 +0000 Subject: [PATCH] fix(ui): always render both DB divs with proper display style, fix JS toggle --- src/core/admin/templates/global.templ | 15 +- src/core/admin/templates/global_templ.go | 285 ++++++++++++----------- 2 files changed, 160 insertions(+), 140 deletions(-) diff --git a/src/core/admin/templates/global.templ b/src/core/admin/templates/global.templ index 297a076..3329a77 100644 --- a/src/core/admin/templates/global.templ +++ b/src/core/admin/templates/global.templ @@ -16,16 +16,13 @@ templ GlobalSettings(dbType, dbPath, dbHost, dbPort, dbUser, dbPass, dbName, smt - if dbType != "mariadb" { -
+
- } - if dbType == "mariadb" { -
+
@@ -51,7 +48,6 @@ templ GlobalSettings(dbType, dbPath, dbHost, dbPort, dbUser, dbPass, dbName, smt
- }

Email

Email

Workspace URL

Authentication (OIDC)

Workspace URL

Authentication (OIDC)

Localization

Localization

") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 40, ">New York
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -392,4 +402,11 @@ func GlobalSettings(dbType, dbPath, dbHost, dbPort, dbUser, dbPass, dbName, smtp }) } +func styleDB(target, current string) string { + if target == current { + return "display:block" + } + return "display:none" +} + var _ = templruntime.GeneratedTemplate