From ed28e7bda9a5a8ad84e1a7e5d7fec24c6b6d3f13 Mon Sep 17 00:00:00 2001 From: svenpopping Date: Wed, 27 May 2015 19:53:40 +0200 Subject: [PATCH 1/6] Fix api changes --- lib/components/lancie-seatmap/lancie-seatmap.coffee | 7 ++++++- lib/components/lancie-seatmap/lancie-seatmap.html | 5 ++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/components/lancie-seatmap/lancie-seatmap.coffee b/lib/components/lancie-seatmap/lancie-seatmap.coffee index 56a82ab..2558559 100644 --- a/lib/components/lancie-seatmap/lancie-seatmap.coffee +++ b/lib/components/lancie-seatmap/lancie-seatmap.coffee @@ -27,4 +27,9 @@ Polymer 'lancie-seatmap', ### loadedJSON: -> - @seats = @$.getAllSeatsAJAX.response + callback = @$.getAllSeatsAJAX.response + console.log callback + if callback.status.code is 470 + window.location = "/login/" + else + @seats = callback.details diff --git a/lib/components/lancie-seatmap/lancie-seatmap.html b/lib/components/lancie-seatmap/lancie-seatmap.html index c9f704f..c01f0ab 100644 --- a/lib/components/lancie-seatmap/lancie-seatmap.html +++ b/lib/components/lancie-seatmap/lancie-seatmap.html @@ -13,17 +13,16 @@ -