This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/controllers/user-topics-list.js.es6

18 lines
398 B
JavaScript

// Lists of topics on a user's page.
export default Ember.Controller.extend({
needs: ["application", "user"],
hideCategory: false,
showPosters: false,
_showFooter: function() {
this.set("controllers.application.showFooter", !this.get("model.canLoadMore"));
}.observes("model.canLoadMore"),
actions: {
loadMore: function() {
this.get('model').loadMore();
}
},
});