From 127691f7bb584b2e64bd6b57c68edc87bde58f80 Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Wed, 30 Oct 2019 20:53:50 +0100 Subject: [PATCH] extend AD_TYPE enum --- app/common/enums.js | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/app/common/enums.js b/app/common/enums.js index aa61b84..c48956c 100644 --- a/app/common/enums.js +++ b/app/common/enums.js @@ -59,9 +59,21 @@ const GARAGE_PRICE_SLIDER_OPTIONS = { }; const AD_TYPE = { - AD_TYPE_SALE: "SALE", - AD_TYPE_RENT: "RENT", - AD_TYPE_REQUEST: "REQUEST" + AD_TYPE_SALE: { + id: 1, + stringId: "SALE", + title: "Prodaja" + }, + AD_TYPE_RENT: { + id: 2, + stringId: "RENT", + title: "Najam" + }, + AD_TYPE_REQUEST: { + id: 3, + stringId: "REQUEST", + title: "Potražnja" + } }; const AD_CATEGORY = {