mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
3083657358
FEATURE: new incoming_email model FEATURE: infinite scrolling in emails admin FEATURE: new 'emails:import' rake task
11 lines
392 B
JavaScript
11 lines
392 B
JavaScript
import EmailLog from 'admin/models/email-log';
|
|
|
|
export default Ember.Controller.extend({
|
|
loadMore() {
|
|
return EmailLog.findAll(this.get("filter"), this.get("model.length"))
|
|
.then(logs => {
|
|
if (logs.length < 50) { this.get("model").set("allLoaded", true); }
|
|
this.get("model").addObjects(logs);
|
|
});
|
|
}
|
|
});
|