mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 03:25:31 -05:00
18 lines
473 B
Text
18 lines
473 B
Text
|
import ModalFunctionality from 'discourse/mixins/modal-functionality';
|
||
|
import IncomingEmail from 'admin/models/incoming-email';
|
||
|
import computed from 'ember-addons/ember-computed-decorators';
|
||
|
import { longDate } from 'discourse/lib/formatter';
|
||
|
|
||
|
export default Ember.Controller.extend(ModalFunctionality, {
|
||
|
|
||
|
@computed("model.date")
|
||
|
date(d) {
|
||
|
return longDate(d);
|
||
|
},
|
||
|
|
||
|
load(id) {
|
||
|
return IncomingEmail.find(id).then(result => this.set("model", result));
|
||
|
}
|
||
|
|
||
|
});
|