FIX: If you split one topic already, the second topic was showing "Saving..."

This commit is contained in:
Robin Ward 2013-07-09 11:18:09 -04:00
parent e05a3569a1
commit 7ad471f019
1 changed files with 4 additions and 1 deletions

View File

@ -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);