Ghost/ghost/admin/app/components/modals/offers/link.hbs
Rishabh 267889993f Updated shareable offer link UI on list screen
refs https://github.com/TryGhost/Team/issues/1084

- updates shareable offer link UI to to open directly instead of route
- calculates offer url from code and updates in link modal
- wires copy button on link modal
- removes route based link code for modal
2021-10-08 09:28:17 +05:30

27 lines
926 B
Handlebars

<div class="modal-content">
<header class="modal-header">
<h1>Offer link</h1>
</header>
<button type="button" class="close" title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>
<div class="modal-body">
<p>
You can share this link with your members via email or social media. This discount will be applied at checkout when members use this link.
</p>
<div class="gh-input-group">
<GhTextInput
@name="url"
@value={{this.offerUrl}}
@id="url"
@disabled="disabled"
@class="gh-input" />
<GhTaskButton
@buttonText="Copy link"
@task={{this.copyOfferUrl}}
@successText="Link copied"
@class="gh-btn gh-btn-black gh-btn-icon" />
</div>
</div>
</div>