FIX: Couldn't click delete topic button due to missing action

This commit is contained in:
Robin Ward 2014-12-04 11:49:53 -05:00
parent e035b07e92
commit 5492bbe11c

View file

@ -78,6 +78,10 @@ export default ObjectController.extend(Discourse.SelectedPostsCount, {
},
actions: {
deleteTopic: function() {
this.deleteTopic();
},
// Post related methods
replyToPost: function(post) {
var composerController = this.get('controllers.composer'),
@ -370,8 +374,13 @@ export default ObjectController.extend(Discourse.SelectedPostsCount, {
},
togglePinnedForUser: function() {
if (this.get('pinned_at'))
this.get('pinned') ? this.get('content').clearPin() : this.get('content').rePin();
if (this.get('pinned_at')) {
if (this.get('pinned')) {
this.get('content').clearPin();
} else {
this.get('content').rePin();
}
}
},
replyAsNewTopic: function(post) {