mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 01:32:23 +08:00
3083657358
FEATURE: new incoming_email model FEATURE: infinite scrolling in emails admin FEATURE: new 'emails:import' rake task
12 lines
392 B
JavaScript
12 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);
|
|
});
|
|
}
|
|
});
|