diff --git a/resources/views/frontend/catalog-new/index-new.blade.php b/resources/views/frontend/catalog-new/index-new.blade.php index 3031c9a67..8a70045fd 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">