mirror of
https://github.com/discourse/discourse.git
synced 2025-03-02 17:29:25 +00:00
FIX: Couldn't click delete topic button due to missing action
This commit is contained in:
parent
e035b07e92
commit
5492bbe11c
@ -78,6 +78,10 @@ export default ObjectController.extend(Discourse.SelectedPostsCount, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
|
deleteTopic: function() {
|
||||||
|
this.deleteTopic();
|
||||||
|
},
|
||||||
|
|
||||||
// Post related methods
|
// Post related methods
|
||||||
replyToPost: function(post) {
|
replyToPost: function(post) {
|
||||||
var composerController = this.get('controllers.composer'),
|
var composerController = this.get('controllers.composer'),
|
||||||
@ -370,8 +374,13 @@ export default ObjectController.extend(Discourse.SelectedPostsCount, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
togglePinnedForUser: function() {
|
togglePinnedForUser: function() {
|
||||||
if (this.get('pinned_at'))
|
if (this.get('pinned_at')) {
|
||||||
this.get('pinned') ? this.get('content').clearPin() : this.get('content').rePin();
|
if (this.get('pinned')) {
|
||||||
|
this.get('content').clearPin();
|
||||||
|
} else {
|
||||||
|
this.get('content').rePin();
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
replyAsNewTopic: function(post) {
|
replyAsNewTopic: function(post) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user