mirror of
https://github.com/discourse/discourse.git
synced 2025-02-11 22:04:58 +00:00
FIX: clear draft when creating a new topic
This commit is contained in:
parent
7737ea89b1
commit
711a7a146c
@ -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…
x
Reference in New Issue
Block a user