mirror of
https://github.com/flarum/core.git
synced 2025-10-14 16:34:26 +02:00
Set document.title on every page
This commit is contained in:
@@ -21,6 +21,8 @@ export default class UserPage extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
this.user = m.prop();
|
||||
|
||||
app.history.push('user');
|
||||
app.current = this;
|
||||
}
|
||||
@@ -30,6 +32,8 @@ export default class UserPage extends Component {
|
||||
*/
|
||||
setupUser(user) {
|
||||
this.user(user);
|
||||
|
||||
app.setTitle(user.username());
|
||||
}
|
||||
|
||||
onload(element, isInitialized, context) {
|
||||
|
Reference in New Issue
Block a user