bugfix: Rename "HideNavigation" to "ShowNavigation"

This commit is contained in:
Russell Jones 2022-03-22 20:04:27 +00:00
parent 81c26d997d
commit 5bd90adc1f
4 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@
listenAddressSingleHTTPFrontend: 0.0.0.0:1337
hideNavigation: true
showNavigation: false
checkForUpdates: false
# Actions (buttons) to show up on the WebUI:

View File

@ -60,7 +60,7 @@ type UserGroup struct {
type Config struct {
UseSingleHTTPFrontend bool
ThemeName string
HideNavigation bool
ShowNavigation bool
ListenAddressSingleHTTPFrontend string
ListenAddressWebUI string
ListenAddressRestActions string
@ -79,7 +79,7 @@ type Config struct {
func DefaultConfig() *Config {
config := Config{}
config.UseSingleHTTPFrontend = true
config.HideNavigation = false
config.ShowNavigation = true
config.ListenAddressSingleHTTPFrontend = "0.0.0.0:1337"
config.ListenAddressRestActions = "localhost:1338"
config.ListenAddressGrpcActions = "localhost:1339"

View File

@ -14,7 +14,7 @@ import (
type webUISettings struct {
Rest string
ThemeName string
HideNavigation bool
ShowNavigation bool
AvailableVersion string
CurrentVersion string
ShowNewVersions bool
@ -52,7 +52,7 @@ func generateWebUISettings(w http.ResponseWriter, r *http.Request) {
jsonRet, _ := json.Marshal(webUISettings{
Rest: restAddress + "/api/",
ThemeName: cfg.ThemeName,
HideNavigation: cfg.HideNavigation,
ShowNavigation: cfg.ShowNavigation,
AvailableVersion: updatecheck.AvailableVersion,
CurrentVersion: updatecheck.CurrentVersion,
ShowNewVersions: cfg.ShowNewVersions,

View File

@ -62,7 +62,7 @@ function processWebuiSettingsJson (settings) {
document.querySelector('#available-version').hidden = false
}
document.querySelector('#section-switcher').hidden = settings.HideNavigation
document.querySelector('#section-switcher').hidden = !settings.ShowNavigation
}
function main () {