mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-29 18:46:23 -05:00
5c899c765b
This reverts commit c21457d6a7
.
18 lines
401 B
JavaScript
18 lines
401 B
JavaScript
import EmailPreview from 'admin/models/email-preview';
|
|
|
|
export default Discourse.Route.extend({
|
|
|
|
model() {
|
|
return EmailPreview.findDigest();
|
|
},
|
|
|
|
afterModel(model) {
|
|
const controller = this.controllerFor('adminEmailPreviewDigest');
|
|
controller.setProperties({
|
|
model: model,
|
|
lastSeen: moment().subtract(7, 'days').format('YYYY-MM-DD'),
|
|
showHtml: true
|
|
});
|
|
}
|
|
|
|
});
|