mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 12:05:29 +08:00
BUGFIX: don't force load drafts when composing.
It will still be there after post is made.
This commit is contained in:
parent
ab17e1476b
commit
6e0e628ff5
|
@ -38,18 +38,21 @@ function buildTopicRoute(filter) {
|
|||
model: model,
|
||||
category: null,
|
||||
period: period,
|
||||
selected: [],
|
||||
selected: []
|
||||
});
|
||||
|
||||
// If there's a draft, open the create topic composer
|
||||
if (model.draft) {
|
||||
this.controllerFor('composer').open({
|
||||
var composer = this.controllerFor('composer');
|
||||
if (!composer.get('model.viewOpen')) {
|
||||
composer.open({
|
||||
action: Discourse.Composer.CREATE_TOPIC,
|
||||
draft: model.draft,
|
||||
draftKey: model.draft_key,
|
||||
draftSequence: model.draft_sequence
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
this.controllerFor('navigationDefault').set('canCreateTopic', model.get('can_create_topic'));
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user