mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: send fewer items to client-side for ACP settings/email page
This commit is contained in:
@@ -22,7 +22,7 @@ settingsController.email = async (req, res) => {
|
||||
|
||||
res.render('admin/settings/email', {
|
||||
emails: emails,
|
||||
sendable: emails.filter(e => !e.path.includes('_plaintext') && !e.path.includes('partials')),
|
||||
sendable: emails.filter(e => !e.path.includes('_plaintext') && !e.path.includes('partials')).map(tpl => tpl.path),
|
||||
services: emailer.listServices(),
|
||||
});
|
||||
};
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
<label>[[admin/settings/email:testing.select]]</label>
|
||||
<select id="test-email" class="form-control">
|
||||
<!-- BEGIN sendable -->
|
||||
<option value="{sendable.path}">{sendable.path}</option>
|
||||
<option value="{@value}">{@value}</option>
|
||||
<!-- END sendable -->
|
||||
</select>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user