discourse/app/assets/javascripts/discourse/controllers/user-topics-list.js.es6
2015-05-11 11:20:45 -04:00

25 lines
660 B
JavaScript

import ObjectController from 'discourse/controllers/object';
// Lists of topics on a user's page.
export default ObjectController.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'),
});