diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-01-28 12:39:48 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-01-28 12:39:48 +0300 |
commit | a4cdbdce1d20023e7bafe01197b9549037cef5ee (patch) | |
tree | c3aab28553938af9cd80278c37d556734fed0a24 | |
parent | 3a6737df93bdf56f69500b83360a3a3e5f9dc161 (diff) |
Respect null values for advanced settings
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | src/components/AdminSettings.vue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/AdminSettings.vue b/src/components/AdminSettings.vue index b04f504e..a8c50f8e 100644 --- a/src/components/AdminSettings.vue +++ b/src/components/AdminSettings.vue @@ -272,11 +272,11 @@ export default { if (this.settings.wopi_url === '') { this.serverError = SERVER_STATE_CONNECTION_ERROR } - Vue.set(this.settings, 'edit_groups', this.settings.edit_groups.split('|')) - Vue.set(this.settings, 'use_groups', this.settings.use_groups.split('|')) + Vue.set(this.settings, 'edit_groups', this.settings.edit_groups ? this.settings.edit_groups.split('|') : null) + Vue.set(this.settings, 'use_groups', this.settings.use_groups ? this.settings.use_groups.split('|') : null) - this.uiVisible.canonical_webroot = this.settings.canonical_webroot !== '' - this.uiVisible.external_apps = this.settings.external_apps !== '' + this.uiVisible.canonical_webroot = !!(this.settings.canonical_webroot && this.settings.canonical_webroot !== '') + this.uiVisible.external_apps = !!(this.settings.external_apps && this.settings.external_apps !== '') this.demoServers = this.initial.demo_servers this.checkIfDemoServerIsActive() |