client/posts: fix safety buttons
This commit is contained in:
parent
1e48140b00
commit
b1b261beb8
|
@ -25,16 +25,15 @@ class PageController {
|
||||||
run(ctx) {
|
run(ctx) {
|
||||||
this._pageView.unrender();
|
this._pageView.unrender();
|
||||||
|
|
||||||
|
const extendedContext = {
|
||||||
|
clientUrl: ctx.clientUrl,
|
||||||
|
searchQuery: ctx.searchQuery,
|
||||||
|
};
|
||||||
|
|
||||||
ctx.headerContext = ctx.headerContext || {};
|
ctx.headerContext = ctx.headerContext || {};
|
||||||
Object.assign(ctx.headerContext, {
|
|
||||||
searchQuery: ctx.searchQuery,
|
|
||||||
});
|
|
||||||
|
|
||||||
ctx.pageContext = ctx.pageContext || {};
|
ctx.pageContext = ctx.pageContext || {};
|
||||||
Object.assign(ctx.pageContext, {
|
Object.assign(ctx.headerContext, extendedContext);
|
||||||
searchQuery: ctx.searchQuery,
|
Object.assign(ctx.pageContext, extendedContext);
|
||||||
});
|
|
||||||
|
|
||||||
this._pageView.render(ctx);
|
this._pageView.render(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue