feat: move allow icon changes setting to api
This commit is contained in:
parent
0f28767acc
commit
d7dc209f15
@ -58,6 +58,8 @@ service:
|
|||||||
# If set to true, the frontend will show a big red warning not to use this instance for real data as it will be cleared out.
|
# If set to true, the frontend will show a big red warning not to use this instance for real data as it will be cleared out.
|
||||||
# You probably don't need to set this value, it was created specifically for usage on [try](https://try.vikunja.io).
|
# You probably don't need to set this value, it was created specifically for usage on [try](https://try.vikunja.io).
|
||||||
demomode: false
|
demomode: false
|
||||||
|
# Allow changing the logo and other icons based on various occasions throughout the year.
|
||||||
|
allowiconchanges: true
|
||||||
|
|
||||||
sentry:
|
sentry:
|
||||||
# If set to true, enables anonymous error tracking of api errors via Sentry. This allows us to gather more
|
# If set to true, enables anonymous error tracking of api errors via Sentry. This allows us to gather more
|
||||||
|
@ -23,8 +23,6 @@
|
|||||||
// It has to be the full url, including the last /api/v1 part and port.
|
// It has to be the full url, including the last /api/v1 part and port.
|
||||||
// You can change this if your api is not reachable on the same port as the frontend.
|
// You can change this if your api is not reachable on the same port as the frontend.
|
||||||
window.API_URL = 'http://localhost:3456/api/v1'
|
window.API_URL = 'http://localhost:3456/api/v1'
|
||||||
// Allow changing the logo and other icons based on various occasions throughout the year.
|
|
||||||
window.ALLOW_ICON_CHANGES = true
|
|
||||||
// Allow using a custom logo via external URL.
|
// Allow using a custom logo via external URL.
|
||||||
window.CUSTOM_LOGO_URL = ''
|
window.CUSTOM_LOGO_URL = ''
|
||||||
</script>
|
</script>
|
||||||
|
@ -62,6 +62,7 @@ const (
|
|||||||
ServiceEnableEmailReminders Key = `service.enableemailreminders`
|
ServiceEnableEmailReminders Key = `service.enableemailreminders`
|
||||||
ServiceEnableUserDeletion Key = `service.enableuserdeletion`
|
ServiceEnableUserDeletion Key = `service.enableuserdeletion`
|
||||||
ServiceMaxAvatarSize Key = `service.maxavatarsize`
|
ServiceMaxAvatarSize Key = `service.maxavatarsize`
|
||||||
|
ServiceAllowIconChanges Key = `service.allowiconchanges`
|
||||||
|
|
||||||
SentryEnabled Key = `sentry.enabled`
|
SentryEnabled Key = `sentry.enabled`
|
||||||
SentryDsn Key = `sentry.dsn`
|
SentryDsn Key = `sentry.dsn`
|
||||||
@ -309,6 +310,7 @@ func InitDefaultConfig() {
|
|||||||
ServiceEnableUserDeletion.setDefault(true)
|
ServiceEnableUserDeletion.setDefault(true)
|
||||||
ServiceMaxAvatarSize.setDefault(1024)
|
ServiceMaxAvatarSize.setDefault(1024)
|
||||||
ServiceDemoMode.setDefault(false)
|
ServiceDemoMode.setDefault(false)
|
||||||
|
ServiceAllowIconChanges.setDefault(true)
|
||||||
|
|
||||||
// Sentry
|
// Sentry
|
||||||
SentryDsn.setDefault("https://440eedc957d545a795c17bbaf477497c@o1047380.ingest.sentry.io/4504254983634944")
|
SentryDsn.setDefault("https://440eedc957d545a795c17bbaf477497c@o1047380.ingest.sentry.io/4504254983634944")
|
||||||
|
@ -75,7 +75,10 @@ func serveIndexFile(c echo.Context, assetFs http.FileSystem) (err error) {
|
|||||||
data["SENTRY_ENABLED"] = "true"
|
data["SENTRY_ENABLED"] = "true"
|
||||||
}
|
}
|
||||||
data["SENTRY_DSN"] = config.SentryFrontendDsn.GetString()
|
data["SENTRY_DSN"] = config.SentryFrontendDsn.GetString()
|
||||||
data["ALLOW_ICON_CHANGES"] = "true" // TODO
|
data["ALLOW_ICON_CHANGES"] = "false"
|
||||||
|
if config.ServiceAllowIconChanges.GetBool() {
|
||||||
|
data["ALLOW_ICON_CHANGES"] = "true"
|
||||||
|
}
|
||||||
data["CUSTOM_LOGO_URL"] = "" // TODO
|
data["CUSTOM_LOGO_URL"] = "" // TODO
|
||||||
|
|
||||||
err = tmpl.Execute(&tplOutput, data)
|
err = tmpl.Execute(&tplOutput, data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user