discourse/app/assets/javascripts/admin/routes/admin-email-preview-digest.js.es6
2015-11-20 10:00:12 -05:00

16 lines
355 B
JavaScript

export default Discourse.Route.extend({
model() {
return Discourse.EmailPreview.findDigest();
},
afterModel(model) {
const controller = this.controllerFor('adminEmailPreviewDigest');
controller.setProperties({
model: model,
lastSeen: moment().subtract(7, 'days').format('YYYY-MM-DD'),
showHtml: true
});
}
});