mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-11 08:11:15 -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);
|
||
|
});
|
||
|
}
|
||
|
});
|