disable plus addressing toggle for microsoft inboxes instead of hiding, preventing accidental disable on re-save

This commit is contained in:
Abhinav Raut
2026-04-24 22:03:39 +05:30
parent ffa5a22f3f
commit b06a5151cc
@@ -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 ||