DEV: Add app event triggered when composer's reply is reloaded.

This commit is contained in:
Dan Ungureanu 2018-11-04 11:22:22 +02:00 committed by Sam
parent b65e5d263e
commit 8837fe47d7
1 changed files with 6 additions and 0 deletions

View File

@ -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;
},