feat(kyc): add demo KYC profile page with mock data
All checks were successful
Build Docker Image / build (push) Successful in 4m1s
All checks were successful
Build Docker Image / build (push) Successful in 4m1s
- Always show 'view full profile' button with fallback to demo UUID - KYC page shows mock data when demo UUID is used - Add i18n translations for demo page
This commit is contained in:
@@ -90,9 +90,8 @@
|
||||
|
||||
<!-- View Full Profile Button -->
|
||||
<button
|
||||
v-if="entity?.kycProfileUuid"
|
||||
class="btn btn-ghost btn-xs text-primary mt-3 w-full"
|
||||
@click="emit('open-kyc', entity.kycProfileUuid)"
|
||||
@click="emit('open-kyc', kycProfileUuid)"
|
||||
>
|
||||
<Icon name="lucide:external-link" size="14" />
|
||||
{{ $t('catalog.info.viewFullKyc') }}
|
||||
@@ -317,6 +316,12 @@ const kycTeaser = computed(() => {
|
||||
}
|
||||
})
|
||||
|
||||
// KYC Profile UUID - use real if available, otherwise mock for demo
|
||||
const MOCK_KYC_UUID = 'demo-kyc-profile'
|
||||
const kycProfileUuid = computed(() => {
|
||||
return props.entity?.kycProfileUuid || MOCK_KYC_UUID
|
||||
})
|
||||
|
||||
// Handlers for selecting related items
|
||||
const onProductSelect = (product: InfoProductItem) => {
|
||||
emit('select-product', product.uuid)
|
||||
|
||||
Reference in New Issue
Block a user