client/posts: fix safety buttons
This commit is contained in:
parent
1e48140b00
commit
b1b261beb8
1 changed files with 7 additions and 8 deletions
|
@ -25,16 +25,15 @@ class PageController {
|
|||
run(ctx) {
|
||||
this._pageView.unrender();
|
||||
|
||||
const extendedContext = {
|
||||
clientUrl: ctx.clientUrl,
|
||||
searchQuery: ctx.searchQuery,
|
||||
};
|
||||
|
||||
ctx.headerContext = ctx.headerContext || {};
|
||||
Object.assign(ctx.headerContext, {
|
||||
searchQuery: ctx.searchQuery,
|
||||
});
|
||||
|
||||
ctx.pageContext = ctx.pageContext || {};
|
||||
Object.assign(ctx.pageContext, {
|
||||
searchQuery: ctx.searchQuery,
|
||||
});
|
||||
|
||||
Object.assign(ctx.headerContext, extendedContext);
|
||||
Object.assign(ctx.pageContext, extendedContext);
|
||||
this._pageView.render(ctx);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue