mirror of
https://github.com/flarum/core.git
synced 2025-02-21 09:42:53 +01:00
Fix routeName attr not being passed into pages
This commit is contained in:
parent
35cb5b20a0
commit
9f5737eb93
@ -24,11 +24,18 @@ export default class DefaultResolver {
|
||||
return this.routeName + JSON.stringify(m.route.param());
|
||||
}
|
||||
|
||||
makeAttrs(vnode) {
|
||||
return {
|
||||
...vnode.attrs,
|
||||
routeName: this.routeName,
|
||||
};
|
||||
}
|
||||
|
||||
onmatch(args, requestedPath, route) {
|
||||
return this.component;
|
||||
}
|
||||
|
||||
render(vnode) {
|
||||
return [{ ...vnode, routeName: this.routeName, key: this.makeKey() }];
|
||||
return [{ ...vnode, attrs: this.makeAttrs(vnode), key: this.makeKey() }];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user