mirror of
https://github.com/flarum/framework.git
synced 2025-05-28 11:05:41 +08:00
Cleanup
This commit is contained in:
@ -3,11 +3,11 @@ import icon from 'flarum/helpers/icon'
|
||||
|
||||
export default class NavItem extends Component {
|
||||
view() {
|
||||
var active = NavItem.active(this.props);
|
||||
var active = this.constructor.active(this.props);
|
||||
return m('li'+(active ? '.active' : ''), m('a', {href: this.props.href, config: m.route}, [
|
||||
icon(this.props.icon+' icon'),
|
||||
this.props.label, ' ',
|
||||
m('span.count', this.props.badge)
|
||||
this.props.badge ? m('span.count', this.props.badge) : ''
|
||||
]))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user