mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
c21457d6a7
This reverts commit c0b277d273
.
16 lines
355 B
JavaScript
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
|
|
});
|
|
}
|
|
|
|
});
|