mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-02 02:14:18 -05:00
- new "show-footer" mixins - converted most of the routes to ES6 - FIX: handling of "indexStream" in user pages There will now be a footer on all the following pages - /exception - /about - /latest - /new - /unread - /starred - /top - /categories - /c/:category - /c/:category/l/latest - /c/:category/l/new - /c/:category/l/unread - /c/:category/l/top - /t/:topic/:id - /groups/:name/members - /user/activity - /user/activity/topics - /user/activity/posts - /user/activity/replies - /user/activity/likes-given - /user/activity/likes-received - /user/activity/bookmarks - /user/activity/starred - /user/badges - /user/notifications - /user/flagged-posts - /user/deleted-posts - /user/private-messages - /user/private-messages/mine - /user/private-messages/unread - /user/invited - /user/:username/preferences - /faq (static pages) - /badges - /badges/:id/:badge
20 lines
522 B
JavaScript
20 lines
522 B
JavaScript
import LoadMore from "discourse/mixins/load-more";
|
|
|
|
export default Ember.View.extend(LoadMore, {
|
|
loading: false,
|
|
eyelineSelector: ".user-stream .item",
|
|
classNames: ["user-stream"],
|
|
|
|
actions: {
|
|
loadMore: function() {
|
|
var self = this;
|
|
if (this.get("loading")) { return; }
|
|
|
|
var postsStream = this.get("controller.model");
|
|
postsStream.findItems().then(function () {
|
|
self.set("loading", false);
|
|
self.get("eyeline").flushRest();
|
|
}).catch(function () { });
|
|
}
|
|
}
|
|
});
|