iticket-seatingplan-dev 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -74,9 +74,9 @@ const SeatingPlan = _ref => {
|
|
|
74
74
|
}).then(response => {
|
|
75
75
|
if ((response === null || response === void 0 ? void 0 : response.status) === 403) {
|
|
76
76
|
;
|
|
77
|
-
(
|
|
77
|
+
(cs || chosenSeat).circle.target.setStyle({
|
|
78
78
|
fillColor: statusColors.sold
|
|
79
|
-
})(
|
|
79
|
+
})(cs || chosenSeat).seat.s = 2;
|
|
80
80
|
const event = {
|
|
81
81
|
type: 'error',
|
|
82
82
|
details: {
|
|
@@ -90,7 +90,7 @@ const SeatingPlan = _ref => {
|
|
|
90
90
|
setProcessing(false);
|
|
91
91
|
} else if ((response === null || response === void 0 ? void 0 : response.status) === 429) {
|
|
92
92
|
;
|
|
93
|
-
(
|
|
93
|
+
(cs || chosenSeat).circle.target.setStyle({
|
|
94
94
|
fillColor: statusColors.available
|
|
95
95
|
});
|
|
96
96
|
const event = {
|
|
@@ -105,13 +105,13 @@ const SeatingPlan = _ref => {
|
|
|
105
105
|
callbackFunction(event);
|
|
106
106
|
setProcessing(false);
|
|
107
107
|
} else {
|
|
108
|
+
// console.log(chosenSeat.seat.ssId, cs?.seat.ssId)
|
|
108
109
|
s.s = 4;
|
|
109
110
|
s.bookedPrice = price;
|
|
110
|
-
(
|
|
111
|
+
(cs || chosenSeat).circle.target.setStyle({
|
|
111
112
|
fillColor: statusColors.booked
|
|
112
113
|
});
|
|
113
114
|
setProcessing(false);
|
|
114
|
-
setChosenSeat(null);
|
|
115
115
|
setBookedSeats([...bookedSeats, {
|
|
116
116
|
ssId: s.ssId,
|
|
117
117
|
r: s.r,
|
|
@@ -123,7 +123,7 @@ const SeatingPlan = _ref => {
|
|
|
123
123
|
}
|
|
124
124
|
}).catch(error => {
|
|
125
125
|
;
|
|
126
|
-
(
|
|
126
|
+
(cs || chosenSeat).circle.target.setStyle({
|
|
127
127
|
fillColor: statusColors.available
|
|
128
128
|
});
|
|
129
129
|
const event = {
|
|
@@ -142,7 +142,6 @@ const SeatingPlan = _ref => {
|
|
|
142
142
|
};
|
|
143
143
|
callbackFunction(event);
|
|
144
144
|
setProcessing(false);
|
|
145
|
-
setChosenSeat(null);
|
|
146
145
|
});
|
|
147
146
|
};
|
|
148
147
|
const removeTicketFromCart = (s, e) => {
|
|
@@ -160,7 +159,6 @@ const SeatingPlan = _ref => {
|
|
|
160
159
|
});
|
|
161
160
|
setBookedSeats(bookedSeats.filter(bs => bs.ssId !== s.ssId));
|
|
162
161
|
setProcessing(false);
|
|
163
|
-
setChosenSeat(null);
|
|
164
162
|
}).catch(error => {
|
|
165
163
|
e.target.setStyle({
|
|
166
164
|
fillColor: statusColors.booked
|
|
@@ -176,7 +174,6 @@ const SeatingPlan = _ref => {
|
|
|
176
174
|
};
|
|
177
175
|
callbackFunction(event);
|
|
178
176
|
setProcessing(false);
|
|
179
|
-
setChosenSeat(null);
|
|
180
177
|
});
|
|
181
178
|
};
|
|
182
179
|
const handleClick = (e, s) => {
|