Some more fixes
Warning dialog about missing Javascript removed from subscription dialog. The warning would flash in any case (even when Javascript is activated)
This commit is contained in:
parent
df2a8c1cde
commit
f7b5aef0e3
5 changed files with 2 additions and 14 deletions
|
@ -176,7 +176,6 @@ To deploy Mailtrain with Docker, you need the following three dependencies insta
|
|||
|
||||
- [Docker](https://www.docker.com/)
|
||||
- [Docker Compose](https://docs.docker.com/compose/)
|
||||
- Git - Typically already present. If not, just use the package manager of your OS distribution to install it.
|
||||
|
||||
These are the steps to start Mailtrain via docker-compose:
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@
|
|||
}
|
||||
|
||||
.tableSelectTable.tableSelectTableHidden {
|
||||
visibility: hidden;
|
||||
display: none;
|
||||
height: 0px;
|
||||
margin-top: -15px;
|
||||
}
|
||||
|
|
|
@ -173,7 +173,7 @@ async function _createTransport(sendConfiguration) {
|
|||
}
|
||||
};
|
||||
|
||||
if (mailerType === MailerType.ZONE_MTA || mailerSettings.zoneMTAType === ZoneMTAType.BUILTIN) {
|
||||
if (mailerType === MailerType.ZONE_MTA && mailerSettings.zoneMTAType === ZoneMTAType.BUILTIN) {
|
||||
transportOptions.host = config.builtinZoneMTA.host;
|
||||
transportOptions.port = config.builtinZoneMTA.port;
|
||||
transportOptions.secure = false;
|
||||
|
|
|
@ -183,7 +183,6 @@ async function _renderSubscribe(req, res, list, subscription) {
|
|||
const htmlRenderer = await tools.getTemplate(data.template, req.locale);
|
||||
|
||||
data.isWeb = true;
|
||||
data.needsJsWarning = true;
|
||||
|
||||
data.flashMessages = await captureFlashMessages(res);
|
||||
|
||||
|
@ -385,7 +384,6 @@ router.getAsync('/:lcid/manage/:ucid', passport.csrfProtection, async (req, res)
|
|||
const htmlRenderer = await tools.getTemplate(data.template, req.locale);
|
||||
|
||||
data.isWeb = true;
|
||||
data.needsJsWarning = true;
|
||||
data.isManagePreferences = true;
|
||||
data.flashMessages = await captureFlashMessages(res);
|
||||
|
||||
|
@ -435,7 +433,6 @@ router.getAsync('/:lcid/manage-address/:ucid', passport.csrfProtection, async (r
|
|||
const htmlRenderer = await tools.getTemplate(data.template, req.locale);
|
||||
|
||||
data.isWeb = true;
|
||||
data.needsJsWarning = true;
|
||||
data.isManagePreferences = true;
|
||||
data.flashMessages = await captureFlashMessages(res);
|
||||
|
||||
|
@ -535,7 +532,6 @@ router.getAsync('/:lcid/unsubscribe/:ucid', passport.csrfProtection, async (req,
|
|||
const htmlRenderer = await tools.getTemplate(data.template, req.locale);
|
||||
|
||||
data.isWeb = true;
|
||||
data.needsJsWarning = true;
|
||||
data.flashMessages = await captureFlashMessages(res);
|
||||
|
||||
res.send(htmlRenderer(data));
|
||||
|
|
|
@ -1,8 +1 @@
|
|||
{{{flashMessages}}}
|
||||
|
||||
{{#if needsJsWarning}}
|
||||
<div class="alert alert-danger js-warning" role="alert">
|
||||
<strong>{{#translate}}warning!{{/translate}}</strong>
|
||||
{{#translate}}javaScriptMustBeEnabledInOrderForThis{{/translate}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in a new issue