Simplify catalog root pages - show only 'Выберите...' hint
All checks were successful
Build Docker Image / build (push) Successful in 4m9s

This commit is contained in:
Ruslan Bakiev
2026-01-19 12:09:18 +07:00
parent da29a354ff
commit 42c8688561
3 changed files with 9 additions and 33 deletions

View File

@@ -19,22 +19,7 @@
</template>
<template #header>
<!-- Empty -->
<Card v-if="!isLoading && products.length === 0" padding="lg">
<Stack align="center" gap="4">
<IconCircle tone="primary">
<Icon name="lucide:package" size="24" />
</IconCircle>
<Heading :level="2">{{ t('catalogProducts.empty.title') }}</Heading>
<Text tone="muted">{{ t('catalogProducts.empty.subtitle') }}</Text>
</Stack>
</Card>
<!-- Header -->
<div v-else>
<Heading :level="1">{{ t('catalogProducts.header.title') }}</Heading>
<Text tone="muted" size="sm">{{ t('catalogProducts.header.subtitle', { count: products.length }) }}</Text>
</div>
<Text v-if="!isLoading" tone="muted">Выберите товар</Text>
</template>
<template #card="{ item }">