mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-22 18:43:33 +00:00
disable plus addressing toggle for microsoft inboxes instead of hiding, preventing accidental disable on re-save
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
</FormField>
|
||||
|
||||
<FormField
|
||||
v-if="showFormFields && showPlusAddressingToggle"
|
||||
v-if="showFormFields"
|
||||
v-slot="{ componentField, handleChange }"
|
||||
name="enable_plus_addressing"
|
||||
>
|
||||
@@ -82,6 +82,7 @@
|
||||
:title="$t('admin.inbox.enablePlusAddressing')"
|
||||
:description="$t('admin.inbox.enablePlusAddressing.description')"
|
||||
:checked="componentField.modelValue"
|
||||
:disabled="isMicrosoftInbox && componentField.modelValue"
|
||||
@update:checked="handleChange"
|
||||
/>
|
||||
<p
|
||||
@@ -917,10 +918,6 @@ const oauthClientId = computed(() => {
|
||||
|
||||
const isMicrosoftInbox = computed(() => form.values.oauth?.provider === PROVIDER_MICROSOFT)
|
||||
|
||||
const showPlusAddressingToggle = computed(
|
||||
() => !isMicrosoftInbox.value || !form.values.enable_plus_addressing
|
||||
)
|
||||
|
||||
const submitLabel = computed(() => {
|
||||
return (
|
||||
props.submitLabel ||
|
||||
|
||||
Reference in New Issue
Block a user