mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 00:43:24 +08:00
c21457d6a7
This reverts commit c0b277d273
.
20 lines
457 B
JavaScript
20 lines
457 B
JavaScript
export default Ember.Controller.extend({
|
|
|
|
actions: {
|
|
refresh() {
|
|
const model = this.get('model');
|
|
|
|
this.set('loading', true);
|
|
Discourse.EmailPreview.findDigest(this.get('lastSeen'), this.get('username')).then(email => {
|
|
model.setProperties(email.getProperties('html_content', 'text_content'));
|
|
this.set('loading', false);
|
|
});
|
|
},
|
|
|
|
toggleShowHtml() {
|
|
this.toggleProperty('showHtml');
|
|
}
|
|
}
|
|
|
|
});
|