mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 18:01:36 +03:00
3a2625b3db
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';
|
|
})
|
|
});
|