bugfix: Rename "HideNavigation" to "ShowNavigation"
This commit is contained in:
parent
81c26d997d
commit
5bd90adc1f
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
listenAddressSingleHTTPFrontend: 0.0.0.0:1337
|
listenAddressSingleHTTPFrontend: 0.0.0.0:1337
|
||||||
|
|
||||||
hideNavigation: true
|
showNavigation: false
|
||||||
checkForUpdates: false
|
checkForUpdates: false
|
||||||
|
|
||||||
# Actions (buttons) to show up on the WebUI:
|
# Actions (buttons) to show up on the WebUI:
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ type UserGroup struct {
|
||||||
type Config struct {
|
type Config struct {
|
||||||
UseSingleHTTPFrontend bool
|
UseSingleHTTPFrontend bool
|
||||||
ThemeName string
|
ThemeName string
|
||||||
HideNavigation bool
|
ShowNavigation bool
|
||||||
ListenAddressSingleHTTPFrontend string
|
ListenAddressSingleHTTPFrontend string
|
||||||
ListenAddressWebUI string
|
ListenAddressWebUI string
|
||||||
ListenAddressRestActions string
|
ListenAddressRestActions string
|
||||||
|
|
@ -79,7 +79,7 @@ type Config struct {
|
||||||
func DefaultConfig() *Config {
|
func DefaultConfig() *Config {
|
||||||
config := Config{}
|
config := Config{}
|
||||||
config.UseSingleHTTPFrontend = true
|
config.UseSingleHTTPFrontend = true
|
||||||
config.HideNavigation = false
|
config.ShowNavigation = true
|
||||||
config.ListenAddressSingleHTTPFrontend = "0.0.0.0:1337"
|
config.ListenAddressSingleHTTPFrontend = "0.0.0.0:1337"
|
||||||
config.ListenAddressRestActions = "localhost:1338"
|
config.ListenAddressRestActions = "localhost:1338"
|
||||||
config.ListenAddressGrpcActions = "localhost:1339"
|
config.ListenAddressGrpcActions = "localhost:1339"
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ import (
|
||||||
type webUISettings struct {
|
type webUISettings struct {
|
||||||
Rest string
|
Rest string
|
||||||
ThemeName string
|
ThemeName string
|
||||||
HideNavigation bool
|
ShowNavigation bool
|
||||||
AvailableVersion string
|
AvailableVersion string
|
||||||
CurrentVersion string
|
CurrentVersion string
|
||||||
ShowNewVersions bool
|
ShowNewVersions bool
|
||||||
|
|
@ -52,7 +52,7 @@ func generateWebUISettings(w http.ResponseWriter, r *http.Request) {
|
||||||
jsonRet, _ := json.Marshal(webUISettings{
|
jsonRet, _ := json.Marshal(webUISettings{
|
||||||
Rest: restAddress + "/api/",
|
Rest: restAddress + "/api/",
|
||||||
ThemeName: cfg.ThemeName,
|
ThemeName: cfg.ThemeName,
|
||||||
HideNavigation: cfg.HideNavigation,
|
ShowNavigation: cfg.ShowNavigation,
|
||||||
AvailableVersion: updatecheck.AvailableVersion,
|
AvailableVersion: updatecheck.AvailableVersion,
|
||||||
CurrentVersion: updatecheck.CurrentVersion,
|
CurrentVersion: updatecheck.CurrentVersion,
|
||||||
ShowNewVersions: cfg.ShowNewVersions,
|
ShowNewVersions: cfg.ShowNewVersions,
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ function processWebuiSettingsJson (settings) {
|
||||||
document.querySelector('#available-version').hidden = false
|
document.querySelector('#available-version').hidden = false
|
||||||
}
|
}
|
||||||
|
|
||||||
document.querySelector('#section-switcher').hidden = settings.HideNavigation
|
document.querySelector('#section-switcher').hidden = !settings.ShowNavigation
|
||||||
}
|
}
|
||||||
|
|
||||||
function main () {
|
function main () {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue