DEV: Return promise for toggleFilteredRepliesView widget action. (#15020)
This allows plugin to wait on the promise when the widget action is called.
This commit is contained in:
parent
4b4973ee0d
commit
1566cd2048
|
@ -483,9 +483,11 @@ createWidget("post-contents", {
|
|||
) {
|
||||
controller.send("cancelFilter", currentFilterPostNumber);
|
||||
this.state.filteredRepliesShown = false;
|
||||
return Promise.resolve();
|
||||
} else {
|
||||
this.state.filteredRepliesShown = true;
|
||||
post
|
||||
|
||||
return post
|
||||
.get("topic.postStream")
|
||||
.filterReplies(post.post_number, post.id)
|
||||
.then(() => {
|
||||
|
|
Loading…
Reference in New Issue