Move SPF info to the relay provider input

This commit is contained in:
Johannes Zellner
2025-07-02 16:36:57 +02:00
parent 3bd41013c0
commit 5dcecb55c2

View File

@@ -157,6 +157,9 @@ async function onSubmit() {
<div>
<SingleSelect v-model="provider" :options="providers" option-key="provider" option-label="name" @select="onProviderChange()" style="display: flex;"/>
<!-- set max-width here until Dialog supports that -->
<div v-if="providerSpfDoc" class="text-warning" style="margin: 10px 0; max-width: 600px" v-html="$t('email.outbound.mailRelay.spfDocInfo', { name: provider, spfDocsLink: providerSpfDoc })"></div>
<div class="text-danger" style="margin: 10px 0;" v-if="provider === 'noop'">{{ $t(domain === adminDomain ? 'email.outbound.noopAdminDomainWarning' : 'email.outbound.noopNonAdminDomainWarning') }}</div>
<div class="text-danger" v-if="formError">{{ formError }}</div>
@@ -196,8 +199,6 @@ async function onSubmit() {
</fieldset>
</form>
<!-- set max-width here until Dialog supports that -->
<div v-if="providerSpfDoc" class="text-danger" style="margin: 10px 0; max-width: 600px" v-html="$t('email.outbound.mailRelay.spfDocInfo', { name: provider, spfDocsLink: providerSpfDoc })"></div>
</div>
</Dialog>