mirror of
https://github.com/flarum/core.git
synced 2025-08-04 23:47:32 +02:00
Remove unnecessary change
This commit is contained in:
@@ -223,7 +223,6 @@ export default class DiscussionPage extends Page {
|
|||||||
items.add(
|
items.add(
|
||||||
'scrubber',
|
'scrubber',
|
||||||
PostStreamScrubber.component({
|
PostStreamScrubber.component({
|
||||||
discussion: this.discussion,
|
|
||||||
stream: this.stream,
|
stream: this.stream,
|
||||||
className: 'App-titleControl',
|
className: 'App-titleControl',
|
||||||
}),
|
}),
|
||||||
|
@@ -31,7 +31,7 @@ export default class PostStreamScrubber extends Component {
|
|||||||
count: <span className="Scrubber-count">{formatNumber(count)}</span>,
|
count: <span className="Scrubber-count">{formatNumber(count)}</span>,
|
||||||
});
|
});
|
||||||
|
|
||||||
const unreadCount = this.attrs.discussion.unreadCount();
|
const unreadCount = this.stream.discussion.unreadCount();
|
||||||
const unreadPercent = count ? Math.min(count - this.stream.index, unreadCount) / count : 0;
|
const unreadPercent = count ? Math.min(count - this.stream.index, unreadCount) / count : 0;
|
||||||
|
|
||||||
function styleUnread(vnode) {
|
function styleUnread(vnode) {
|
||||||
|
Reference in New Issue
Block a user