mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
15 lines
400 B
JavaScript
15 lines
400 B
JavaScript
import Ember from 'ember';
|
|
Ember.LinkView.reopen({
|
|
active: Ember.computed('loadedParams', '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';
|
|
})
|
|
});
|