mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 04:01:29 -05:00
FIX: Couldn't click delete topic button due to missing action
This commit is contained in:
parent
e035b07e92
commit
5492bbe11c
1 changed files with 11 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue