mirror of
https://github.com/discourse/discourse.git
synced 2024-12-17 00:03:43 +08:00
23 lines
598 B
JavaScript
23 lines
598 B
JavaScript
// Lists of topics on a user's page.
|
|
export default Ember.Controller.extend({
|
|
needs: ["application", "user"],
|
|
hideCategory: false,
|
|
showParticipants: false,
|
|
|
|
_showFooter: function() {
|
|
this.set("controllers.application.showFooter", !this.get("model.canLoadMore"));
|
|
}.observes("model.canLoadMore"),
|
|
|
|
actions: {
|
|
loadMore: function() {
|
|
this.get('model').loadMore();
|
|
}
|
|
},
|
|
|
|
showNewPM: function(){
|
|
return this.get('controllers.user.viewingSelf') &&
|
|
Discourse.User.currentProp('can_send_private_messages');
|
|
}.property('controllers.user.viewingSelf'),
|
|
|
|
});
|