FIX: Clear edit post when clicking reply.
This commit is contained in:
parent
3ef66b1dca
commit
9fbab34e57
1 changed files with 2 additions and 1 deletions
|
@ -369,10 +369,11 @@ const Composer = RestModel.extend({
|
||||||
|
|
||||||
const composer = this;
|
const composer = this;
|
||||||
if (!replyBlank &&
|
if (!replyBlank &&
|
||||||
(opts.action !== this.get('action') || ((opts.reply || opts.action === this.EDIT) && this.get('replyDirty')))) {
|
((opts.reply || opts.action === this.EDIT) && this.get('replyDirty'))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (opts.action === REPLY && this.get('action') === EDIT) this.set('reply', '');
|
||||||
if (!opts.draftKey) throw 'draft key is required';
|
if (!opts.draftKey) throw 'draft key is required';
|
||||||
if (opts.draftSequence === null) throw 'draft sequence is required';
|
if (opts.draftSequence === null) throw 'draft sequence is required';
|
||||||
|
|
||||||
|
|
Reference in a new issue