WiP Ad preview page - flexslider problem.
This commit is contained in:
@@ -10,6 +10,8 @@ const {
|
||||
ADDITIONAL_INPUT_PUBLISH
|
||||
} = require("../common/publishEnums");
|
||||
|
||||
const { AD_CATEGORY, AD_TYPE } = require("../common/enums");
|
||||
|
||||
const getViewRealEstate = async (req, res) => {
|
||||
const kiviOriginal = await currentKiviRealEstate(req);
|
||||
|
||||
@@ -163,6 +165,20 @@ const getViewRealEstate = async (req, res) => {
|
||||
"https://cdn.pixabay.com/photo/2020/02/18/01/16/down-4858219__340.jpg"
|
||||
];
|
||||
|
||||
const showRealEstateType = AD_CATEGORY[realEstateType].title.toUpperCase();
|
||||
let showAdType = "";
|
||||
switch (adType) {
|
||||
case AD_TYPE.AD_TYPE_SALE.stringId:
|
||||
showAdType = AD_TYPE.AD_TYPE_SALE.title.toUpperCase();
|
||||
break;
|
||||
case AD_TYPE.AD_TYPE_RENT.stringId:
|
||||
showAdType = AD_TYPE.AD_TYPE_RENT.title.toUpperCase();
|
||||
break;
|
||||
default:
|
||||
showAdType = "-";
|
||||
break;
|
||||
}
|
||||
|
||||
res.render("viewRealEstate", {
|
||||
title: pageTitle,
|
||||
booleanFields,
|
||||
@@ -172,8 +188,8 @@ const getViewRealEstate = async (req, res) => {
|
||||
allSegmentSelectedValues,
|
||||
locationLat,
|
||||
locationLong,
|
||||
adType,
|
||||
realEstateType,
|
||||
showAdType,
|
||||
showRealEstateType,
|
||||
realEstatePhotosUrls
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user