Fix "saving" message not dismissing when editing posts.
This commit is contained in:
parent
1d2dceda32
commit
881986636c
|
@ -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') {
|
||||||
|
|
Loading…
Reference in New Issue