0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fixed billing nav menu item not showing as active

no issue

- the billing nav menu item isn't a regular route link so we don't get "active" classes by default
- added active class manually based on the service property that controls billing screen visibility
This commit is contained in:
Kevin Ansfield 2021-03-10 16:16:42 +00:00
parent cce71e5517
commit ddbeec3945

View file

@ -92,7 +92,7 @@
<ul class="gh-nav-list">
{{#if this.showBilling}}
<li class="relative">
<a href="javascript:void(0)" {{action "toggleBillingModal" }} data-test-nav="billing">
<a href="javascript:void(0)" class={{if this.billing.billingWindowOpen "active"}} {{action "toggleBillingModal" }} data-test-nav="billing">
{{svg-jar "credit-card"}} Ghost(Pro)
</a>
</li>