Fix "saving" message not dismissing when editing posts.

This commit is contained in:
Guo Xiang Tan 2017-01-27 21:30:28 +08:00
parent 1d2dceda32
commit 881986636c
1 changed files with 1 additions and 1 deletions

View File

@ -479,7 +479,7 @@ export default Ember.Controller.extend({
} }
// If user "created a new topic/post" or "replied as a new topic" successfully, remove the draft. // If user "created a new topic/post" or "replied as a new topic" successfully, remove the draft.
if (result.responseJson.action === "create_post" || self.get('replyAsNewTopicDraft') || self.get('replyAsNewPrivateMessageDraft')) { if (result.responseJson.action === "create_post" || this.get('replyAsNewTopicDraft') || this.get('replyAsNewPrivateMessageDraft')) {
this.destroyDraft(); this.destroyDraft();
} }
if (this.get('model.action') === 'edit') { if (this.get('model.action') === 'edit') {