Show warning when sendmail is disabled for a domain

This commit is contained in:
Girish Ramakrishnan
2019-07-24 22:11:05 -07:00
parent 5f41c78305
commit 92835a5270

View File

@@ -436,8 +436,13 @@
<select class="form-control" style="width: 50%;" ng-model="mailRelay.preset" ng-options="a.name for a in mailRelayPresets track by a.provider" ng-change="mailRelay.presetChanged()"></select>
</div>
<p class="small text-danger" ng-show="mailRelay.preset.provider === 'noop' && selectedDomain.domain === config.adminDomain">
Cloudron cannot send user invites, password reset and other notifications when email is disabled on the primary domain
<p class="small text-danger" ng-show="mailRelay.preset.provider === 'noop'">
<span ng-if="selectedDomain.domain === config.adminDomain">
Cloudron cannot send user invites, password reset and other notifications when email is disabled on the primary domain
</span>
<span ng-if="selectedDomain.domain !== config.adminDomain">
Cloudron cannot email for apps hosted under this domain when email is disabled
</span>
</p>
</div>