mirror of
https://github.com/discourse/discourse.git
synced 2025-02-04 15:36:15 +08:00
18 lines
398 B
JavaScript
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();
|
|
}
|
|
},
|
|
|
|
});
|