mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 18:17:29 -05:00
17 lines
355 B
Text
17 lines
355 B
Text
|
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
|
||
|
});
|
||
|
}
|
||
|
|
||
|
});
|