fix: show hosted email service, just disable for non pro subs

This commit is contained in:
Andras Bacsai 2023-09-02 13:41:42 +02:00
parent eac7834083
commit 040f47b59c

View File

@ -35,7 +35,13 @@ class="text-white normal-case btn btn-xs no-animation btn-primary">
<x-forms.checkbox instantSave="instantSaveInstance" id="team.use_instance_email_settings" <x-forms.checkbox instantSave="instantSaveInstance" id="team.use_instance_email_settings"
label="Use hosted email service" /> label="Use hosted email service" />
</div> </div>
@else
<div class="pb-4 w-96">
<x-forms.checkbox disabled id="team.use_instance_email_settings"
label="Use hosted email service (Pro+ subscription required)" />
</div>
@endif @endif
<h3 class="pb-4">Custom Email Service</h3>
@if (!$team->use_instance_email_settings) @if (!$team->use_instance_email_settings)
<form class="flex flex-col items-end gap-2 pb-4 xl:flex-row" wire:submit.prevent='submitFromFields'> <form class="flex flex-col items-end gap-2 pb-4 xl:flex-row" wire:submit.prevent='submitFromFields'>
<x-forms.input required id="team.smtp_from_name" helper="Name used in emails." label="From Name" /> <x-forms.input required id="team.smtp_from_name" helper="Name used in emails." label="From Name" />