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

21 lines
448 B
JavaScript
Raw Normal View History

/**
Handles email routes
@class AdminEmailRoute
@extends Discourse.Route
@namespace Discourse
@module Discourse
**/
Discourse.AdminEmailIndexRoute = Discourse.Route.extend({
setupController: function(controller) {
Discourse.EmailSettings.find().then(function (model) {
controller.set('model', model);
});
},
renderTemplate: function() {
this.render('admin/templates/email_index', {into: 'adminEmail'});
}
});