mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 02:56:26 -05:00
12 lines
419 B
Text
12 lines
419 B
Text
|
import IncomingEmail from 'admin/models/incoming-email';
|
||
|
|
||
|
export default Ember.Controller.extend({
|
||
|
loadMore() {
|
||
|
return IncomingEmail.findAll(this.get("filter"), this.get("model.length"))
|
||
|
.then(incoming => {
|
||
|
if (incoming.length < 50) { this.get("model").set("allLoaded", true); }
|
||
|
this.get("model").addObjects(incoming);
|
||
|
});
|
||
|
}
|
||
|
});
|