mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 21:50:24 +08:00
19 lines
414 B
JavaScript
19 lines
414 B
JavaScript
export default Discourse.View.extend(Discourse.LoadMore, {
|
|
loading: false,
|
|
eyelineSelector: '.admin-flags tbody tr',
|
|
|
|
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);
|
|
});
|
|
}
|
|
}
|
|
|
|
});
|