Skip to content

Commit 73884d7

Browse files
authored
feat: closing early bird (#972)
1 parent 643663a commit 73884d7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/pages/ticket/index.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ const { t, locale } = useI18n();
3131
const localeRoute = useLocaleRoute();
3232
3333
const isSoldOutAfterParty = import.meta.vfFeatures.soldOutAfterParty;
34-
const isSoldOutEarlyBirdAfterParty = import.meta.vfFeatures.soldOutEarlyBirdAfterParty;
34+
const isSoldOutEarlyBirdAfterParty = import.meta.vfFeatures.soldOutEarlyBirdAfterParty || import.meta.vfFeatures.soldOutEarlyBird;
35+
const isSoldOutEarlyBird = import.meta.vfFeatures.soldOutEarlyBird;
3536
3637
const isLoading = ref(false);
3738
@@ -84,9 +85,10 @@ useSeoMeta({
8485
<span class="ticket-badge-price">
8586
<!-- eslint-disable-next-line @intlify/vue-i18n/no-raw-text -->
8687
<span class="ticket-badge-price-type">{{ t('ticket.early') }}</span>
87-
<span class="ticket-badge-price-value">
88+
<span class="ticket-badge-price-value" :class="{ 'sold-out': isSoldOutEarlyBird }">
8889
<span class="ticket-badge-price-unit" :class="locale">{{ t("ticket.priceUnit") }}</span>{{ (Number(t('ticket.generalTicket.earlyPrice'))).toLocaleString() }}
8990
</span>
91+
<span v-if="isSoldOutEarlyBird" class="sold-out-label">{{ t('ticket.soldOut') }}</span>
9092
</span>
9193

9294
<span class="ticket-badge-price">

nuxt.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ export default defineNuxtConfig({
131131
staff: process.env.CONTEXT !== "production",
132132
soldOutAfterParty: true,
133133
soldOutEarlyBirdAfterParty: true,
134+
soldOutEarlyBird: process.env.CONTEXT !== "production", // turn on it at 9/1
134135
guestDetailsEvan: false,
135136
guestDetailsDaniel: process.env.CONTEXT !== "production",
136137
guestDetailsJohnson: process.env.CONTEXT !== "production",

0 commit comments

Comments
 (0)