mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 13:09:33 -06:00
FIX: Clear state after creating new topic (#12615)
This commit is contained in:
parent
f56a22bd2e
commit
98ae4e2829
@ -805,6 +805,10 @@ export default Controller.extend({
|
||||
this.appEvents.trigger("post:highlight", result.payload.post_number);
|
||||
}
|
||||
|
||||
if (this.get("model.draftKey") === Composer.NEW_TOPIC_KEY) {
|
||||
this.currentUser.set("has_topic_draft", false);
|
||||
}
|
||||
|
||||
if (result.responseJson.route_to) {
|
||||
this.destroyDraft();
|
||||
if (result.responseJson.message) {
|
||||
|
Loading…
Reference in New Issue
Block a user