DEV: Add app event triggered when composer's reply is reloaded.
This commit is contained in:
parent
b65e5d263e
commit
8837fe47d7
|
@ -686,6 +686,8 @@ const Composer = RestModel.extend({
|
|||
originalText: post.get("raw"),
|
||||
loading: false
|
||||
});
|
||||
|
||||
composer.appEvents.trigger("composer:reply-reloaded", composer);
|
||||
});
|
||||
} else if (opts.action === REPLY && opts.quote) {
|
||||
this.setProperties({
|
||||
|
@ -701,6 +703,10 @@ const Composer = RestModel.extend({
|
|||
this.set("originalTitle", this.get("title"));
|
||||
}
|
||||
|
||||
if (!isEdit(opts.action) || !opts.post) {
|
||||
composer.appEvents.trigger("composer:reply-reloaded", composer);
|
||||
}
|
||||
|
||||
return false;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue