mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
1f8b323285
refs #3989 - Remove active class from {{#link-to tagName="button" ..}}
14 lines
357 B
JavaScript
14 lines
357 B
JavaScript
Ember.LinkView.reopen({
|
|
active: Ember.computed('resolvedParams', 'routeArgs', function () {
|
|
var isActive = this._super();
|
|
|
|
Ember.set(this, 'alternateActive', isActive);
|
|
|
|
return isActive;
|
|
}),
|
|
|
|
activeClass: Ember.computed('tagName', function () {
|
|
return this.get('tagName') === 'button' ? '' : 'active';
|
|
})
|
|
});
|