diff --git a/website/client/.eslintrc.js b/website/client/.eslintrc.js index 7dc69cc284..56eb1c8668 100644 --- a/website/client/.eslintrc.js +++ b/website/client/.eslintrc.js @@ -14,6 +14,10 @@ module.exports = { // TODO find a way to let eslint understand webpack aliases 'import/no-unresolved': 'off', 'import/extensions': 'off', + 'vue/component-tags-order': ['warn', { + order: [ 'template', 'style', 'script' ], + }], + 'vue/no-mutating-props': 'warn', 'vue/no-v-html': 'off', 'vue/html-self-closing': ['error', { html: { diff --git a/website/client/src/components/admin-panel/user-support/subscriptionAndPerks.vue b/website/client/src/components/admin-panel/user-support/subscriptionAndPerks.vue index 50c3c1b135..8fa3cffb0b 100644 --- a/website/client/src/components/admin-panel/user-support/subscriptionAndPerks.vue +++ b/website/client/src/components/admin-panel/user-support/subscriptionAndPerks.vue @@ -43,42 +43,55 @@
- Months until renewal: + Perk offset months: {{ hero.purchased.plan.consecutive.offset }}
-
- Next Mystic Hourglass: - {{ nextHourglassDate }} -
-
- -
-
- Gem cap: - {{ hero.purchased.plan.consecutive.gemCapExtra + 25 }} -
-
- -
+
+ Next Mystic Hourglass: + {{ nextHourglassDate }} +
+
+ +
+
+ +
+
+ Total Gem cap: + {{ Number(hero.purchased.plan.consecutive.gemCapExtra) + 25 }} +
+
+ +
@@ -139,13 +152,6 @@ export default { return currentPlanContext.nextHourglassDate.format('MMMM'); }, }, - watch: { - 'hero.purchased.plan.consecutive.count' () { // eslint-disable-line object-shorthand - this.hero.purchased.plan.consecutive.gemCapExtra = Math.min( - Math.floor(this.hero.purchased.plan.consecutive.count / 3) * 5, 25, - ); - }, - }, methods: { dateFormat (date) { return moment(date).format('YYYY/MM/DD');