FIX: Allow user to abandon draft reply when clicking edit.
This commit is contained in:
parent
a45d6936f2
commit
73bb60ee74
|
@ -405,7 +405,7 @@ export default Ember.ObjectController.extend(Presence, {
|
||||||
if (composerModel.get('composeState') === Discourse.Composer.DRAFT &&
|
if (composerModel.get('composeState') === Discourse.Composer.DRAFT &&
|
||||||
composerModel.get('draftKey') === opts.draftKey) {
|
composerModel.get('draftKey') === opts.draftKey) {
|
||||||
composerModel.set('composeState', Discourse.Composer.OPEN);
|
composerModel.set('composeState', Discourse.Composer.OPEN);
|
||||||
return resolve();
|
if (composerModel.get('action') === opts.action) return resolve();
|
||||||
}
|
}
|
||||||
|
|
||||||
// If it's a different draft, cancel it and try opening again.
|
// If it's a different draft, cancel it and try opening again.
|
||||||
|
|
Loading…
Reference in New Issue