From 91cbf7a2a97a95d2d4bb94889dcaa60a3f07e09d Mon Sep 17 00:00:00 2001 From: SabreCat Date: Wed, 23 Nov 2022 13:08:23 -0600 Subject: [PATCH 1/6] fix(shops): show correct countdown outside of Gala --- .../client/src/components/shops/buyModal.vue | 5 +- .../components/shops/market/categoryRow.vue | 51 ------------------- 2 files changed, 3 insertions(+), 53 deletions(-) diff --git a/website/client/src/components/shops/buyModal.vue b/website/client/src/components/shops/buyModal.vue index 013c291d55..66c90b182a 100644 --- a/website/client/src/components/shops/buyModal.vue +++ b/website/client/src/components/shops/buyModal.vue @@ -385,7 +385,6 @@ import EquipmentAttributesGrid from '../inventory/equipment/attributesGrid.vue'; import Item from '@/components/inventory/item'; import Avatar from '@/components/avatar'; -import seasonalShopConfig from '@/../../common/script/libs/shops-seasonal.config'; import { drops as dropEggs } from '@/../../common/script/content/eggs'; import { drops as dropPotions } from '@/../../common/script/content/hatching-potions'; @@ -438,7 +437,6 @@ export default { selectedAmountToBuy: 1, isPinned: false, - endDate: seasonalShopConfig.dateRange.end, }; }, computed: { @@ -489,6 +487,9 @@ export default { nonSubscriberHourglasses () { return (!this.user.purchased.plan.customerId && !this.user.purchased.plan.consecutive.trinkets && this.getPriceClass() === 'hourglasses'); }, + endDate () { + return moment(this.item.event.end); + }, }, watch: { item: function itemChanged () { diff --git a/website/client/src/components/shops/market/categoryRow.vue b/website/client/src/components/shops/market/categoryRow.vue index eada1073a0..77610d2ae2 100644 --- a/website/client/src/components/shops/market/categoryRow.vue +++ b/website/client/src/components/shops/market/categoryRow.vue @@ -8,16 +8,6 @@ :popover-position="'top'" @click="itemSelected(item)" > - - {{ $t('maxBuyGems') }} -

{{ item.text }}

-
- {{ limitedString }} -
-