From b536e625e77aae67178344e74da2c2d11c757f20 Mon Sep 17 00:00:00 2001 From: Elizabeth Danzberger Date: Wed, 12 Jun 2024 11:59:52 -0400 Subject: [PATCH 1/3] fix: Uncheck group limit settings Signed-off-by: Elizabeth Danzberger --- src/components/AdminSettings.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/AdminSettings.vue b/src/components/AdminSettings.vue index 55f28aeb60..a373e53bcd 100644 --- a/src/components/AdminSettings.vue +++ b/src/components/AdminSettings.vue @@ -242,7 +242,7 @@ :disabled="updating" @input="updateOoxml" /> - - Date: Wed, 12 Jun 2024 12:02:33 -0400 Subject: [PATCH 2/3] fix: Add input label to NcSelect Signed-off-by: Elizabeth Danzberger --- src/components/SettingsSelectGroup.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/SettingsSelectGroup.vue b/src/components/SettingsSelectGroup.vue index 8dcd118db6..9e04125e2f 100644 --- a/src/components/SettingsSelectGroup.vue +++ b/src/components/SettingsSelectGroup.vue @@ -26,6 +26,7 @@ :input-id="uuid" :placeholder="label" label="displayname" + :input-label="label" :multiple="true" :close-on-select="false" :disabled="disabled" From 2a7082582226e4b10520e32e6eabc1009be446df Mon Sep 17 00:00:00 2001 From: Elizabeth Danzberger Date: Thu, 13 Jun 2024 15:22:00 -0400 Subject: [PATCH 3/3] fix: Hide `NcSelect` when unchecked Signed-off-by: Elizabeth Danzberger --- src/components/AdminSettings.vue | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/src/components/AdminSettings.vue b/src/components/AdminSettings.vue index a373e53bcd..f382104324 100644 --- a/src/components/AdminSettings.vue +++ b/src/components/AdminSettings.vue @@ -247,7 +247,7 @@ :hint="t('richdocuments', '{productName} is enabled for all users by default. When this setting is active, only members of the specified groups can use it.', { productName })" :disabled="updating" @input="updateUseGroups"> - - 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) {