Fixed offer percentage amount not getting set

no refs
This commit is contained in:
Rishabh 2021-10-08 19:15:56 +05:30
parent 4bbbea29ed
commit 7ef2b08883

View File

@ -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>