Fix route conflict: move offer detail page to /offers/detail/[offerId]
All checks were successful
Build Docker Image / build (push) Successful in 3m18s
All checks were successful
Build Docker Image / build (push) Successful in 3m18s
- Change theme from cmyk to cupcake - Move [offerId].vue to detail/[offerId].vue to avoid conflict with [productId]/index.vue - Update all navigation references to use new /catalog/offers/detail/ path
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
useHead({
|
useHead({
|
||||||
htmlAttrs: {
|
htmlAttrs: {
|
||||||
'data-theme': 'cmyk',
|
'data-theme': 'cupcake',
|
||||||
},
|
},
|
||||||
script: []
|
script: []
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ const getKycProfileUuid = (offerUuid?: string | null) => {
|
|||||||
// Navigate to offer detail page
|
// Navigate to offer detail page
|
||||||
const navigateToOffer = (offerUuid?: string | null) => {
|
const navigateToOffer = (offerUuid?: string | null) => {
|
||||||
if (!offerUuid) return
|
if (!offerUuid) return
|
||||||
navigateTo(localePath(`/catalog/offers/${offerUuid}`))
|
navigateTo(localePath(`/catalog/offers/detail/${offerUuid}`))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load offer details for prices
|
// Load offer details for prices
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<component
|
<component
|
||||||
:is="linkable ? NuxtLink : 'div'"
|
:is="linkable ? NuxtLink : 'div'"
|
||||||
:to="linkable ? localePath(`/catalog/offers/${offer.uuid}`) : undefined"
|
:to="linkable ? localePath(`/catalog/offers/detail/${offer.uuid}`) : undefined"
|
||||||
class="block"
|
class="block"
|
||||||
:class="{ 'cursor-pointer': selectable }"
|
:class="{ 'cursor-pointer': selectable }"
|
||||||
@click="selectable && $emit('select')"
|
@click="selectable && $emit('select')"
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
:start-name="item.name"
|
:start-name="item.name"
|
||||||
:end-name="hub?.name"
|
:end-name="hub?.name"
|
||||||
:kyc-profile-uuid="getOfferData(item.uuid)?.kycProfileUuid"
|
:kyc-profile-uuid="getOfferData(item.uuid)?.kycProfileUuid"
|
||||||
@select="navigateTo(localePath(`/catalog/offers/${item.uuid}`))"
|
@select="navigateTo(localePath(`/catalog/offers/detail/${item.uuid}`))"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
:key="offer.uuid"
|
:key="offer.uuid"
|
||||||
padding="md"
|
padding="md"
|
||||||
interactive
|
interactive
|
||||||
@click="navigateTo(localePath(`/catalog/offers/${offer.uuid}`))"
|
@click="navigateTo(localePath(`/catalog/offers/detail/${offer.uuid}`))"
|
||||||
>
|
>
|
||||||
<Stack gap="3">
|
<Stack gap="3">
|
||||||
<Stack gap="1">
|
<Stack gap="1">
|
||||||
|
|||||||
Reference in New Issue
Block a user