From c58c4f866abdc69974d7c1a1cfd1c9bc6cfacb8f Mon Sep 17 00:00:00 2001 From: UUBulb <35923940+uubulb@users.noreply.github.com> Date: Fri, 18 Oct 2024 12:26:59 +0800 Subject: [PATCH] do not check description file for theme-custom (#437) * do not check description file for theme-custom * deprecation note --- cmd/dashboard/controller/controller.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/dashboard/controller/controller.go b/cmd/dashboard/controller/controller.go index 61806f7..51d1f74 100644 --- a/cmd/dashboard/controller/controller.go +++ b/cmd/dashboard/controller/controller.go @@ -96,6 +96,13 @@ func loadThirdPartyTemplates(tmpl *template.Template) *template.Template { } themeDir := theme.Name() + if themeDir == "theme-custom" { + // for backward compatibility + // note: will remove this in future versions + ret = loadTemplates(ret, themeDir) + continue + } + if strings.HasPrefix(themeDir, "dashboard-") { // load dashboard templates, ignore desc file ret = loadTemplates(ret, themeDir)