FIX: Allow user to abandon draft reply when clicking edit.

This commit is contained in:
Guo Xiang Tan 2015-08-13 16:26:58 +08:00
parent a45d6936f2
commit 73bb60ee74
1 changed files with 1 additions and 1 deletions

View File

@ -405,7 +405,7 @@ export default Ember.ObjectController.extend(Presence, {
if (composerModel.get('composeState') === Discourse.Composer.DRAFT &&
composerModel.get('draftKey') === opts.draftKey) {
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.