2014-11-19 14:37:43 -05:00
|
|
|
import LoadMore from "discourse/mixins/load-more";
|
|
|
|
|
|
|
|
export default Discourse.View.extend(LoadMore, {
|
2013-08-19 07:14:26 -04:00
|
|
|
loading: false,
|
|
|
|
eyelineSelector: '.admin-flags tbody tr',
|
2014-07-28 13:17:37 -04:00
|
|
|
|
|
|
|
actions: {
|
|
|
|
loadMore: function() {
|
|
|
|
var self = this;
|
|
|
|
if (this.get("loading") || this.get("model.allLoaded")) { return; }
|
|
|
|
|
|
|
|
this.set("loading", true);
|
|
|
|
|
|
|
|
this.get("controller").loadMore().then(function () {
|
|
|
|
self.set("loading", false);
|
|
|
|
});
|
|
|
|
}
|
2013-08-19 07:14:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
});
|