mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-17 06:41:42 +00:00
feat: Add option to disable showing the version and option to prevent checking for updates
This commit is contained in:
parent
4db26f9f79
commit
d73aa1782e
16 changed files with 91 additions and 8 deletions
|
|
@ -54,6 +54,10 @@ class ServerSettings {
|
|||
this.timeFormat = 'HH:mm'
|
||||
this.language = 'en-us'
|
||||
|
||||
// Version
|
||||
this.versionUpdateCheck = true
|
||||
this.showVersion = true
|
||||
|
||||
this.logLevel = Logger.logLevel
|
||||
|
||||
this.version = null
|
||||
|
|
@ -95,6 +99,8 @@ class ServerSettings {
|
|||
this.sortingIgnorePrefix = !!settings.sortingIgnorePrefix
|
||||
this.sortingPrefixes = settings.sortingPrefixes || ['the']
|
||||
this.chromecastEnabled = !!settings.chromecastEnabled
|
||||
this.versionUpdateCheck = !!settings.versionUpdateCheck
|
||||
this.showVersion = !!settings.showVersion
|
||||
this.enableEReader = !!settings.enableEReader
|
||||
this.dateFormat = settings.dateFormat || 'MM/dd/yyyy'
|
||||
this.timeFormat = settings.timeFormat || 'HH:mm'
|
||||
|
|
@ -146,6 +152,8 @@ class ServerSettings {
|
|||
sortingIgnorePrefix: this.sortingIgnorePrefix,
|
||||
sortingPrefixes: [...this.sortingPrefixes],
|
||||
chromecastEnabled: this.chromecastEnabled,
|
||||
versionUpdateCheck: this.versionUpdateCheck,
|
||||
showVersion: this.showVersion,
|
||||
enableEReader: this.enableEReader,
|
||||
dateFormat: this.dateFormat,
|
||||
timeFormat: this.timeFormat,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue