Add an appEvent for when a post is created
List for `post:created` and you'll be passed the new post when it is created.
This commit is contained in:
parent
057f698e37
commit
50fae909d6
|
@ -941,6 +941,7 @@ const Composer = RestModel.extend({
|
|||
|
||||
composer.clearState();
|
||||
composer.set("createdPost", createdPost);
|
||||
this.appEvents.trigger("post:created", createdPost);
|
||||
|
||||
if (addedToStream) {
|
||||
composer.set("composeState", CLOSED);
|
||||
|
|
Loading…
Reference in New Issue