1
0
mirror of https://github.com/flarum/core.git synced 2025-07-19 15:51:16 +02:00

Add label to back button, change behaviour

The back button longer shows if the user hasn't actually navigated anywhere. e.g. if they come in directly to a discussion, it will be hidden.
This commit is contained in:
Toby Zerner
2015-11-02 18:08:55 +10:30
parent d497782f65
commit 25932cf7c4
7 changed files with 29 additions and 12 deletions

View File

@@ -54,7 +54,7 @@ export default class IndexPage extends Page {
app.cache.discussionList = new DiscussionList({params});
}
app.history.push('index');
app.history.push('index', app.translator.trans('core.forum.header.discussions_button'));
this.bodyClass = 'App--index';
}