feat(catalog): add KYC profile modal on click
Some checks failed
Build Docker Image / build (push) Has been cancelled
Some checks failed
Build Docker Image / build (push) Has been cancelled
This commit is contained in:
@@ -54,6 +54,7 @@
|
|||||||
@add-to-filter="onInfoAddToFilter"
|
@add-to-filter="onInfoAddToFilter"
|
||||||
@open-info="onInfoOpenRelated"
|
@open-info="onInfoOpenRelated"
|
||||||
@select-product="onInfoSelectProduct"
|
@select-product="onInfoSelectProduct"
|
||||||
|
@open-kyc="onOpenKyc"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Quote results: show offers after search -->
|
<!-- Quote results: show offers after search -->
|
||||||
@@ -65,6 +66,19 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</CatalogPage>
|
</CatalogPage>
|
||||||
|
|
||||||
|
<!-- KYC Profile Modal -->
|
||||||
|
<dialog ref="kycModalRef" class="modal">
|
||||||
|
<div class="modal-box max-w-2xl bg-base-100">
|
||||||
|
<form method="dialog">
|
||||||
|
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">✕</button>
|
||||||
|
</form>
|
||||||
|
<KycProfileCard :kyc-profile-uuid="kycProfileUuid" />
|
||||||
|
</div>
|
||||||
|
<form method="dialog" class="modal-backdrop">
|
||||||
|
<button>close</button>
|
||||||
|
</form>
|
||||||
|
</dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
@@ -346,6 +360,10 @@ const offers = ref<OfferResult[]>([])
|
|||||||
const offersLoading = ref(false)
|
const offersLoading = ref(false)
|
||||||
const showQuoteResults = ref(false)
|
const showQuoteResults = ref(false)
|
||||||
|
|
||||||
|
// KYC Modal
|
||||||
|
const kycModalRef = ref<HTMLDialogElement | null>(null)
|
||||||
|
const kycProfileUuid = ref<string | null>(null)
|
||||||
|
|
||||||
// Watch for search trigger from topnav
|
// Watch for search trigger from topnav
|
||||||
const searchTrigger = useState<number>('catalog-search-trigger', () => 0)
|
const searchTrigger = useState<number>('catalog-search-trigger', () => 0)
|
||||||
watch(searchTrigger, () => {
|
watch(searchTrigger, () => {
|
||||||
@@ -492,6 +510,13 @@ const onInfoSelectProduct = (uuid: string | null) => {
|
|||||||
setInfoProduct(uuid)
|
setInfoProduct(uuid)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Handle KYC profile open - show modal with full profile
|
||||||
|
const onOpenKyc = (uuid: string | undefined) => {
|
||||||
|
if (!uuid) return
|
||||||
|
kycProfileUuid.value = uuid
|
||||||
|
kycModalRef.value?.showModal()
|
||||||
|
}
|
||||||
|
|
||||||
// Search for offers
|
// Search for offers
|
||||||
const onSearch = async () => {
|
const onSearch = async () => {
|
||||||
if (!canSearch.value) return
|
if (!canSearch.value) return
|
||||||
|
|||||||
Reference in New Issue
Block a user