discourse/app/assets/javascripts/admin/routes/admin-email-preview-digest.js.es6

17 lines
355 B
Plaintext
Raw Normal View History

2015-08-16 17:51:31 +08:00
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
});
}
});