FIX: refresh post stream after in-place post updates (#13384)

Changing the staged attribute on a post means we also need to re-render.

Previously certain edits would not issue a refresh leaving a post greyed out.
This commit is contained in:
Sam 2021-06-15 16:40:52 +10:00 committed by GitHub
parent ff4fb9c771
commit cc1e73b8e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -992,6 +992,7 @@ const Composer = RestModel.extend({
.catch(rollback)
.finally(() => {
post.set("staged", false);
this.appEvents.trigger("post-stream:refresh", { id: post.id });
});
},