mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
13 lines
302 B
Plaintext
13 lines
302 B
Plaintext
|
export default Ember.Component.extend({
|
||
|
tagName: 'li',
|
||
|
classNameBindings: ['active'],
|
||
|
|
||
|
router: function() {
|
||
|
return this.container.lookup('router:main');
|
||
|
}.property(),
|
||
|
|
||
|
active: function() {
|
||
|
return this.get('router').isActive(this.get('route'));
|
||
|
}.property('router.url', 'route')
|
||
|
});
|