From 8eaecc9ecd3b134537b52ba300dfc5f7b65fce83 Mon Sep 17 00:00:00 2001 From: FrantisekMichalSebestyen Date: Wed, 23 Aug 2023 13:39:03 +0200 Subject: [PATCH] feat: year slider functionality --- .../frontend/catalog-new/index-new.blade.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/resources/views/frontend/catalog-new/index-new.blade.php b/resources/views/frontend/catalog-new/index-new.blade.php index 8bf72cf7a..9ef7ed8c0 100644 --- a/resources/views/frontend/catalog-new/index-new.blade.php +++ b/resources/views/frontend/catalog-new/index-new.blade.php @@ -228,10 +228,12 @@ class="tw-mb-3"> {{ trans('item.filter.clear') }} - + @@ -389,9 +391,11 @@ class="tw-ml-2" @endslot @slot('body') + v-bind:default-from="Number(query.yearRange?.from)" + v-bind:default-to="Number(query.yearRange?.to)" + v-bind:min="Number(aggregations.date_earliest) - 5" + v-bind:max="Math.min(Number(aggregations.date_latest) + 5, new Date().getFullYear())" + v-on:change="handleYearRangeChange">