From 14d4e1431acce403df4fe1d4878ad7a99ab9addb Mon Sep 17 00:00:00 2001 From: StephanieP Date: Mon, 19 Feb 2018 08:12:27 +0100 Subject: [PATCH] #3 set available seats from eventsBooking --- src/main/webapp/js/utils/dataHelper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/webapp/js/utils/dataHelper.js b/src/main/webapp/js/utils/dataHelper.js index 31bb53d..dab57d6 100644 --- a/src/main/webapp/js/utils/dataHelper.js +++ b/src/main/webapp/js/utils/dataHelper.js @@ -65,7 +65,7 @@ define(['moment'], function(moment) { function enrichData(entry, metaData) { entry.roomName = getRoomName(entry.locationId, metaData.locations); entry.formattedStart = moment(entry.start).format('MMM DD, HH:mm'); - entry.availableSeats = getSeats(entry.locationId, metaData.locations); + //entry.availableSeats = getSeats(entry.locationId, metaData.locations); } function addDeltaToConferences(events, delta) { @@ -76,6 +76,7 @@ define(['moment'], function(moment) { event.fullyBooked = delta[i].fullyBooked; event.numberOfFavorites = delta[i].numberOfFavorites; event.occupiedSeats = delta[i].numberOccupied; + event.availableSeats = delta[i].locationCapacity; } } return events;