1
0
mirror of https://github.com/flarum/core.git synced 2025-07-24 18:21:33 +02:00

Add an API to show a count in the document title

This commit is contained in:
Toby Zerner
2015-08-04 19:04:17 +09:30
parent e091b037f3
commit 26c87de317
3 changed files with 25 additions and 1 deletions

View File

@@ -184,6 +184,7 @@ export default class DiscussionPage extends mixin(Component, evented) {
this.discussion = discussion;
app.setTitle(discussion.title());
app.setTitleCount(0);
// When the API responds with a discussion, it will also include a number of
// posts. Some of these posts are included because they are on the first

View File

@@ -96,6 +96,7 @@ export default class IndexPage extends Component {
};
app.setTitle('');
app.setTitleCount(0);
// Work out the difference between the height of this hero and that of the
// previous hero. Maintain the same scroll position relative to the bottom