mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Make sure active discussion is highlighted
This commit is contained in:
parent
e123ad52a9
commit
e2bb399db9
|
@ -130,7 +130,7 @@ export default class DiscussionListItem extends Component {
|
|||
* @return {Boolean}
|
||||
*/
|
||||
active() {
|
||||
return m.route.param('id') === this.props.discussion.id();
|
||||
return m.route.param('id').split('-')[0] === this.props.discussion.id();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user