0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

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'}), status: attr('string', {defaultValue: 'active'}),
tier: attr(), tier: attr(),
stripeCouponId: attr('string'), stripeCouponId: attr('string'),
redemptionCount: attr('number'),
currency: attr('string'), currency: attr('string'),
type: attr('string', {defaultValue: 'percent'}), type: attr('string', {defaultValue: 'percent'}),
amount: attr('number'), amount: attr('number'),

View file

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