mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-08 04:03:12 +03:00
8db9bc9f2e
no issue - the upgrade button is a link rather than a button so was not triggering the modal's close behaviour - added an `{{on "click" @close}}` handler to the link. `@close` does not preventDefault so the link's transition will still occur
27 lines
989 B
Handlebars
27 lines
989 B
Handlebars
|
|
<div class="modal-content" data-test-modal="limits/custom-theme">
|
|
<header class="modal-header">
|
|
<h1>Upgrade to enable custom themes</h1>
|
|
</header>
|
|
<button class="close" title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>
|
|
|
|
<div class="modal-body">
|
|
<p>
|
|
{{#if @data.message}}
|
|
{{html-safe @data.message}}
|
|
{{else}}
|
|
Your current plan only supports official themes. You can install them from the <a href="https://ghost.org/marketplace/">Ghost theme marketplace</a>.
|
|
{{/if}}
|
|
</p>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button {{on "click" @close}} class="gh-btn" data-test-button="cancel-upgrade">
|
|
<span>Cancel</span>
|
|
</button>
|
|
|
|
<LinkTo @route="pro" class="gh-btn gh-btn-green" {{on "click" @close}} data-test-button="upgrade-plan">
|
|
<span>Upgrade</span>
|
|
</LinkTo>
|
|
</div>
|
|
</div> |