From 8fca523bb53ab8203c25db47e6217d65fdd3513c Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Wed, 16 Oct 2019 15:09:05 +0200 Subject: [PATCH] change slider ranges for land and garage --- app/common/enums.js | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/app/common/enums.js b/app/common/enums.js index 0601a9e..0feafed 100644 --- a/app/common/enums.js +++ b/app/common/enums.js @@ -32,6 +32,38 @@ const GARDEN_SIZE_SLIDER_OPTIONS = { tooltips: true }; +const LAND_SIZE_SLIDER_OPTIONS = { + start: [5000, 15000], + range: { + min: [0], + max: [100000] + }, + step: 100, + connect: true, + tooltips: true +}; +const GARAGE_SIZE_SLIDER_OPTIONS = { + start: [10, 20], + range: { + min: [0], + max: [50] + }, + step: 2, + connect: true, + tooltips: true +}; + +const GARAGE_PRICE_SLIDER_OPTIONS = { + start: [2000, 10000], + range: { + min: [0], + max: [100000] + }, + step: 500, + connect: true, + tooltips: true +}; + const AD_TYPE = { AD_TYPE_SALE: "SALE", AD_TYPE_RENT: "RENT" @@ -65,7 +97,7 @@ const AD_CATEGORY = { title: "Zemljište", hasGardenSize: false, priceSliderOptions: PRICE_SLIDER_OPTIONS, - sizeSliderOptions: HOME_SIZE_SLIDER_OPTIONS + sizeSliderOptions: LAND_SIZE_SLIDER_OPTIONS }, APARTMENT: { id: "APARTMENT", @@ -78,8 +110,8 @@ const AD_CATEGORY = { id: "GARAGE", title: "Garaža", hasGardenSize: false, - priceSliderOptions: PRICE_SLIDER_OPTIONS, - sizeSliderOptions: HOME_SIZE_SLIDER_OPTIONS + priceSliderOptions: GARAGE_PRICE_SLIDER_OPTIONS, + sizeSliderOptions: GARAGE_SIZE_SLIDER_OPTIONS }, COTTAGE: { id: "COTTAGE",