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

Forced close of design sections when clicking "Change theme" link

refs f9a2626ae4

- nav menu felt inconsistent where clicking a section nav item closes all other sections but clicking the change-theme nav item didn't
This commit is contained in:
Kevin Ansfield 2021-10-13 12:33:15 +01:00
parent 51efc0765d
commit 2476aff3d7

View file

@ -37,7 +37,7 @@
</div>
<div class="gh-nav-bottom">
<LinkTo class="gh-nav-design-tab flex-column" style="align-items: self-start" @route="settings.design.change-theme">
<LinkTo class="gh-nav-design-tab flex-column" style="align-items: self-start" @route="settings.design.change-theme" {{on "click" (fn this.toggleSection null)}}>
<span class="db">{{svg-jar "settings"}}Change theme</span>
<span class="db">Current: {{this.activeTheme.name}}{{#if this.activeTheme.package.version}} - V {{this.activeTheme.package.version}}{{/if}}</span>
</LinkTo>