mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 12:11:16 -05:00
FIX: clear draft when creating a new topic
This commit is contained in:
parent
7737ea89b1
commit
711a7a146c
1 changed files with 2 additions and 2 deletions
|
@ -275,8 +275,8 @@ export default Ember.Controller.extend({
|
|||
return result;
|
||||
}
|
||||
|
||||
// If we replied as a new topic successfully, remove the draft.
|
||||
if (self.get('replyAsNewTopicDraft')) {
|
||||
// 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.destroyDraft();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue