mirror of
https://github.com/flarum/core.git
synced 2025-07-11 20:06:23 +02:00
Simplify global back button
The behaviour is not overly intuitive, and the icon wasn't helping (hamburger icon usually means "menu"). Now the back button always goes back to the index, no matter where you are, and there's a tooltip that says "Back to discussion list".
This commit is contained in:
@ -26,8 +26,6 @@ export default class UserPage extends Page {
|
||||
*/
|
||||
this.user = null;
|
||||
|
||||
app.history.push('user');
|
||||
|
||||
this.bodyClass = 'App--user';
|
||||
}
|
||||
|
||||
@ -74,7 +72,6 @@ export default class UserPage extends Page {
|
||||
show(user) {
|
||||
this.user = user;
|
||||
|
||||
app.history.push('user', user.username());
|
||||
app.setTitle(user.username());
|
||||
|
||||
m.redraw();
|
||||
|
Reference in New Issue
Block a user