mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 11:32:24 -05:00
12 lines
392 B
Text
12 lines
392 B
Text
|
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);
|
||
|
});
|
||
|
}
|
||
|
});
|