Files
webapp/app/pages/catalog/suppliers/index.vue
Ruslan Bakiev 0c88cf383c
All checks were successful
Build Docker Image / build (push) Successful in 4m21s
Refactor catalog filters: remove badges, use select dropdowns
- Remove filter from suppliers page (not needed)
- Offers: show all active offers directly, add product type filter as select
- Hubs: change filter from pills to select dropdown
- Create CatalogFilterSelect component for dropdown filters
- Update useCatalogOffers to always filter active, use product filter
2026-01-08 10:08:05 +07:00

60 lines
1.1 KiB
Vue

<template>
<CatalogPage
:items="items"
:loading="isLoading"
map-id="suppliers-map"
point-color="#3b82f6"
:selected-id="selectedSupplierId"
@select="onSelectSupplier"
>
<template #card="{ item }">
<SupplierCard :supplier="item" />
</template>
<template #pagination>
<PaginationLoadMore
:shown="items.length"
:total="total"
:can-load-more="canLoadMore"
:loading="isLoadingMore"
@load-more="loadMore"
/>
</template>
<template #empty>
<Text tone="muted">{{ t('catalogSuppliersSection.empty.no_suppliers') }}</Text>
</template>
</CatalogPage>
</template>
<script setup lang="ts">
definePageMeta({
layout: 'topnav'
})
const { t } = useI18n()
const {
items,
total,
isLoading,
isLoadingMore,
canLoadMore,
loadMore,
init
} = useCatalogSuppliers()
// Selected supplier for map highlighting
const selectedSupplierId = ref<string>()
const onSelectSupplier = (supplier: any) => {
selectedSupplierId.value = supplier.uuid || supplier.teamUuid
}
await init()
useHead(() => ({
title: t('catalogSuppliersSection.header.title')
}))
</script>