Skip to content

Commit

Permalink
do not check description file for theme-custom (#437)
Browse files Browse the repository at this point in the history
* do not check description file for theme-custom

* deprecation note
  • Loading branch information
uubulb authored Oct 18, 2024
1 parent fc9f1b6 commit c58c4f8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/dashboard/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c58c4f8

Please sign in to comment.