From dd64a4b780bd2f2c2f1d4579df03fdc59fdc4236 Mon Sep 17 00:00:00 2001 From: naiba Date: Mon, 6 Jan 2025 21:07:32 +0800 Subject: [PATCH] feat: upgrade frontend --- cmd/dashboard/controller/setting.go | 4 ++-- service/singleton/frontend-templates.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/dashboard/controller/setting.go b/cmd/dashboard/controller/setting.go index 0a037871..333b3213 100644 --- a/cmd/dashboard/controller/setting.go +++ b/cmd/dashboard/controller/setting.go @@ -45,8 +45,8 @@ func listConfig(c *gin.Context) (model.SettingResponse[any], error) { Oauth2Providers: config.Oauth2Providers, } if authorized { - config.TLS = singleton.Conf.TLS - config.InstallHost = singleton.Conf.InstallHost + configForGuests.TLS = singleton.Conf.TLS + configForGuests.InstallHost = singleton.Conf.InstallHost } conf = model.SettingResponse[any]{ Config: configForGuests, diff --git a/service/singleton/frontend-templates.yaml b/service/singleton/frontend-templates.yaml index 8e7764aa..95a6c52f 100644 --- a/service/singleton/frontend-templates.yaml +++ b/service/singleton/frontend-templates.yaml @@ -2,7 +2,7 @@ name: "OfficialAdmin" repository: "https://github.com/nezhahq/admin-frontend" author: "nezhahq" - version: "v1.5.6" + version: "v1.5.7" isadmin: true isofficial: true - path: "user-dist"