mirror of
https://github.com/OliveTin/OliveTin
synced 2026-08-27 04:56:31 +00:00
feature: New diagnostics page, showing SSH keys found. (#344)
This commit is contained in:
@@ -29,6 +29,8 @@ type webUISettings struct {
|
||||
PageTitle string
|
||||
SectionNavigationStyle string
|
||||
DefaultIconForBack string
|
||||
SshFoundKey string
|
||||
SshFoundConfig string
|
||||
}
|
||||
|
||||
func findWebuiDir() string {
|
||||
@@ -111,8 +113,11 @@ func generateWebUISettings(w http.ResponseWriter, r *http.Request) {
|
||||
PageTitle: cfg.PageTitle,
|
||||
SectionNavigationStyle: cfg.SectionNavigationStyle,
|
||||
DefaultIconForBack: cfg.DefaultIconForBack,
|
||||
SshFoundKey: installationinfo.Runtime.SshFoundKey,
|
||||
SshFoundConfig: installationinfo.Runtime.SshFoundConfig,
|
||||
})
|
||||
|
||||
w.Header().Add("Content-Type", "application/json")
|
||||
_, err := w.Write([]byte(jsonRet))
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user