mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 12:24:55 +00:00
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:
parent
ff4fb9c771
commit
cc1e73b8e4
@ -992,6 +992,7 @@ const Composer = RestModel.extend({
|
|||||||
.catch(rollback)
|
.catch(rollback)
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
post.set("staged", false);
|
post.set("staged", false);
|
||||||
|
this.appEvents.trigger("post-stream:refresh", { id: post.id });
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user