mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 19:08:10 -05:00
3083657358
FEATURE: new incoming_email model FEATURE: infinite scrolling in emails admin FEATURE: new 'emails:import' rake task
14 lines
391 B
JavaScript
14 lines
391 B
JavaScript
import LoadMore from "discourse/mixins/load-more";
|
|
|
|
export default Ember.View.extend(LoadMore, {
|
|
loading: false,
|
|
eyelineSelector: ".email-list tr",
|
|
|
|
actions: {
|
|
loadMore() {
|
|
if (this.get("loading") || this.get("model.allLoaded")) { return; }
|
|
this.set("loading", true);
|
|
return this.get("controller").loadMore().then(() => this.set("loading", false));
|
|
}
|
|
}
|
|
});
|