mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
no related issue This is essentially setting up a binding from the `LinkView`'s `active` status and whatever is set as `alternativeActive` in the `{{link-to}}` (in our case the `activating-list-item` component. Screenshots showing that the proper CSS classes are given:   
9 lines
226 B
JavaScript
9 lines
226 B
JavaScript
Ember.LinkView.reopen({
|
|
active: Ember.computed('resolvedParams', 'routeArgs', function () {
|
|
var isActive = this._super();
|
|
|
|
Ember.set(this, 'alternateActive', isActive);
|
|
|
|
return isActive;
|
|
})
|
|
});
|