From b94bb836f5d1c5584820597e3101ffe89ba16216 Mon Sep 17 00:00:00 2001 From: Rishabh Date: Mon, 18 Oct 2021 23:46:30 +0530 Subject: [PATCH] Added redemption count for offers in list screen closes https://github.com/TryGhost/Team/issues/1136 --- ghost/admin/app/models/offer.js | 1 + ghost/admin/app/templates/offers.hbs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ghost/admin/app/models/offer.js b/ghost/admin/app/models/offer.js index 3861eee786..d48a0e4472 100644 --- a/ghost/admin/app/models/offer.js +++ b/ghost/admin/app/models/offer.js @@ -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'), diff --git a/ghost/admin/app/templates/offers.hbs b/ghost/admin/app/templates/offers.hbs index b5b00fb9df..4c78b968e0 100644 --- a/ghost/admin/app/templates/offers.hbs +++ b/ghost/admin/app/templates/offers.hbs @@ -63,7 +63,7 @@ - - + {{offer.redemptionCount}}