Added redemption count for offers in list screen

closes https://github.com/TryGhost/Team/issues/1136
This commit is contained in:
Rishabh 2021-10-18 23:46:30 +05:30
parent eda694b69f
commit b94bb836f5
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ export default Model.extend(ValidationEngine, {
status: attr('string', {defaultValue: 'active'}),
tier: attr(),
stripeCouponId: attr('string'),
redemptionCount: attr('number'),
currency: attr('string'),
type: attr('string', {defaultValue: 'percent'}),
amount: attr('number'),

View File

@ -63,7 +63,7 @@
</span>
</LinkTo>
<LinkTo @route="offer" @model={{offer}} class="gh-list-data">
<span class="midgrey">-</span>
<span class="midgrey">{{offer.redemptionCount}}</span>
</LinkTo>
<div class="gh-list-data gh-list-cellwidth-10 gh-tag-list-chevron">
<div class="flex items-center justify-end w-100 h-100">