mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
Fixed offer percentage amount not getting set
no refs
This commit is contained in:
parent
4bbbea29ed
commit
7ef2b08883
@ -58,6 +58,7 @@
|
||||
<GhFormGroup @errors={{this.errors}} @property="amount">
|
||||
<label for="amount" class="fw6">Amount off</label>
|
||||
<div class="gh-offer-value percentage">
|
||||
{{#if (eq this.offer.type 'fixed')}}
|
||||
<GhTextInput
|
||||
@name="amount"
|
||||
@type="number"
|
||||
@ -68,6 +69,18 @@
|
||||
@id="amount"
|
||||
@class="gh-input"
|
||||
/>
|
||||
{{else}}
|
||||
<GhTextInput
|
||||
@name="amount"
|
||||
@type="number"
|
||||
@placeholder=""
|
||||
@disabled={{this.isDiscountSectionDisabled}}
|
||||
@value={{readonly this.offer.amount}}
|
||||
@input={{this.setDiscountAmount}}
|
||||
@id="amount"
|
||||
@class="gh-input"
|
||||
/>
|
||||
{{/if}}
|
||||
<GhErrorMessage @errors={{this.errors}} @property="amount" />
|
||||
</div>
|
||||
</GhFormGroup>
|
||||
|
Loading…
Reference in New Issue
Block a user