FIX: If you split one topic already, the second topic was showing "Saving..."
This commit is contained in:
parent
e05a3569a1
commit
7ad471f019
|
@ -12,7 +12,6 @@ Discourse.SplitTopicController = Discourse.ObjectController.extend(Discourse.Sel
|
|||
|
||||
topicController: Em.computed.alias('controllers.topic'),
|
||||
selectedPosts: Em.computed.alias('topicController.selectedPosts'),
|
||||
saving: false,
|
||||
|
||||
buttonDisabled: function() {
|
||||
if (this.get('saving')) return true;
|
||||
|
@ -24,6 +23,10 @@ Discourse.SplitTopicController = Discourse.ObjectController.extend(Discourse.Sel
|
|||
return I18n.t('topic.split_topic.action');
|
||||
}.property('saving'),
|
||||
|
||||
onShow: function() {
|
||||
this.set('saving', false);
|
||||
},
|
||||
|
||||
movePostsToNewTopic: function() {
|
||||
this.set('saving', true);
|
||||
|
||||
|
|
Loading…
Reference in New Issue