mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 02:56:26 -05:00
20 lines
452 B
JavaScript
20 lines
452 B
JavaScript
import LoadMore from "discourse/mixins/load-more";
|
|
|
|
export default Ember.View.extend(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);
|
|
});
|
|
}
|
|
}
|
|
|
|
});
|