mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +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', { | 	res.render('admin/settings/email', { | ||||||
| 		emails: emails, | 		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(), | 		services: emailer.listServices(), | ||||||
| 	}); | 	}); | ||||||
| }; | }; | ||||||
|   | |||||||
| @@ -121,7 +121,7 @@ | |||||||
| 			<label>[[admin/settings/email:testing.select]]</label> | 			<label>[[admin/settings/email:testing.select]]</label> | ||||||
| 			<select id="test-email" class="form-control"> | 			<select id="test-email" class="form-control"> | ||||||
| 				<!-- BEGIN sendable --> | 				<!-- BEGIN sendable --> | ||||||
| 				<option value="{sendable.path}">{sendable.path}</option> | 				<option value="{@value}">{@value}</option> | ||||||
| 				<!-- END sendable --> | 				<!-- END sendable --> | ||||||
| 			</select> | 			</select> | ||||||
| 		</div> | 		</div> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user