mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:23:13 +08:00
17 lines
355 B
JavaScript
17 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
|
|
});
|
|
}
|
|
|
|
});
|