diff --git a/src/components/AdminSettings.vue b/src/components/AdminSettings.vue
index b63423d7e1..347b660ff4 100644
--- a/src/components/AdminSettings.vue
+++ b/src/components/AdminSettings.vue
@@ -242,12 +242,12 @@
:disabled="updating"
@input="updateOoxml" />
-
-
-
- 0) {
+ this.settings.use_groups = enabled
}
+
await this.updateSettings({
- use_groups: this.settings.use_groups !== null ? this.settings.use_groups.join('|') : '',
+ use_groups: this.settings.use_groups?.join('|') ?? '',
})
},
async updateEditGroups(enabled) {
- if (enabled) {
- this.settings.edit_groups = enabled === true ? [] : enabled
- } else {
- this.settings.edit_groups = null
+ if (typeof enabled === 'boolean') {
+ this.settings.edit_groups = (enabled) ? [] : null
+ this.uiVisible.edit_groups = Boolean(this.settings.edit_groups)
+ } else if (enabled.length > 0) {
+ this.settings.edit_groups = enabled
}
+
await this.updateSettings({
- edit_groups: this.settings.edit_groups !== null ? this.settings.edit_groups.join('|') : '',
+ edit_groups: this.settings.edit_groups?.join('|') ?? '',
})
},
async updateCanonicalWebroot(canonicalWebroot) {