discourse/app/assets/javascripts/admin/routes/admin_email_index_route.js

10 lines
240 B
JavaScript

Discourse.AdminEmailIndexRoute = Discourse.Route.extend({
model: function() {
return Discourse.EmailSettings.find();
},
renderTemplate: function() {
this.render('admin/templates/email_index', { into: 'adminEmail' });
}
});