FIX: email preview

This commit is contained in:
Arpit Jalan 2015-08-16 15:31:04 +05:30
parent c74a6ab555
commit 90388aa18e
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ export default Ember.Controller.extend({
refresh() { refresh() {
const model = this.get('model'); const model = this.get('model');
self.set('loading', true); this.set('loading', true);
Discourse.EmailPreview.findDigest(this.get('lastSeen')).then(email => { Discourse.EmailPreview.findDigest(this.get('lastSeen')).then(email => {
model.setProperties(email.getProperties('html_content', 'text_content')); model.setProperties(email.getProperties('html_content', 'text_content'));
this.set('loading', false); this.set('loading', false);