From 21911f80ff68b795a99b9ff3bd69d9ec1e07f35c Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Fri, 3 Apr 2026 15:15:57 +0700 Subject: [PATCH] refactor(catalog): simplify product action panel --- .../catalog/CatalogConfigurator.vue | 44 ++++++++++--------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/app/components/catalog/CatalogConfigurator.vue b/app/components/catalog/CatalogConfigurator.vue index 30cb359..48fde26 100644 --- a/app/components/catalog/CatalogConfigurator.vue +++ b/app/components/catalog/CatalogConfigurator.vue @@ -303,6 +303,10 @@ function selectionDescription(group: ProductGroup) { return 'Разверните весь список, если нужна ручная проверка вариантов.'; } +function addButtonLabel(group: ProductGroup) { + return selectedProduct(group) ? 'В корзину' : 'Выбрать параметры'; +} + function boxQuantityLabel(group: ProductGroup) { const product = selectedProduct(group); if (product?.quantityPerBoxOptions.length) { @@ -425,18 +429,23 @@ function decrementSelected(group: ProductGroup) { :key="group.key" class="surface-card rounded-3xl p-4 md:p-5" > -
+
-
+
+

Тип товара

+

{{ group.typeLabel }}

+
+ +
-
-

Тип товара

-

{{ group.typeLabel }}

-
- -
- {{ group.products.length }} вариантов - Короб: {{ boxQuantityLabel(group) }} -
-
-

{{ selectionHeadline(group) }}

-

{{ selectionDescription(group) }}

+

{{ selectionHeadline(group) }}

+

{{ selectionDescription(group) }}

+

Короб: {{ boxQuantityLabel(group) }}

+ +
{{ selectedQty(group) }}
-