diff --git a/website/client/src/components/admin-panel/user-support/index.vue b/website/client/src/components/admin-panel/user-support/index.vue index 7506b91b48..8d156077f2 100644 --- a/website/client/src/components/admin-panel/user-support/index.vue +++ b/website/client/src/components/admin-panel/user-support/index.vue @@ -18,7 +18,7 @@ />
-
- Payment Method: - {{ subscription.paymentMethod }} -
-
- Payment Schedule ("basic-earned" is monthly): - {{ subscription.planId }} -
-
- Creation Date: - {{ moment(subscription.dateCreated).format('YYYY/MM/DD') }} -
-
- Termination Date: - {{ moment(subscription.dateTerminated).format('YYYY/MM/DD') }} -
-
- Consecutive Months: - {{ subscription.consecutive.count }} -
-
- Months Until Renewal: - {{ subscription.consecutive.offset }} -
-
- Gem Cap: - {{ subscription.consecutive.gemCapExtra + 25 }} -
-
- Additional Credit (applied upon cancellation): - {{ subscription.extraMonths }} -
-
- Mystery Items: - +
+ Payment method: + {{ hero.purchased.plan.paymentMethod }} +
+
+ Payment schedule ("basic-earned" is monthly): + {{ hero.purchased.plan.planId }} +
+
+ Creation date: + {{ dateFormat(hero.purchased.plan.dateCreated) }} +
+
+ Termination date: + + {{ dateFormat(hero.purchased.plan.dateTerminated) }} + + None +
+
+ Consecutive months: + {{ hero.purchased.plan.consecutive.count }} +
+
+ Months until renewal: + {{ hero.purchased.plan.consecutive.offset || 1}} +
+
+ Next Mystic Hourglass: + {{ nextHourGlassDate }} +
+
+ +
+
+ Gem cap: + {{ hero.purchased.plan.consecutive.gemCapExtra + 25 }} +
+
+ +
+
- {{ item }}, - {{ item }} - -
+ Additional credit (applied upon cancellation): + {{ hero.purchased.plan.extraMonths }} +
+
+ Mystery Items: + + + + {{ item }}, + + {{ item }} + + + + None + +
+ +
diff --git a/website/server/controllers/api-v3/hall.js b/website/server/controllers/api-v3/hall.js index a05b1e4f0f..e3f950b08a 100644 --- a/website/server/controllers/api-v3/hall.js +++ b/website/server/controllers/api-v3/hall.js @@ -273,6 +273,15 @@ api.updateHero = { hero.balance = updateData.balance; } + if (updateData.purchased && updateData.purchased.plan) { + if (updateData.purchased.plan.gemsBought) { + hero.purchased.plan.gemsBought = updateData.purchased.plan.gemsBought; + } + if (updateData.purchased.plan.consecutive && updateData.purchased.plan.consecutive.trinkets) { + hero.purchased.plan.consecutive.trinkets = updateData.purchased.plan.consecutive.trinkets; + } + } + // give them gems if they got an higher level // tier = level in this context let newTier = updateData.contributor && updateData.contributor.level;