mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 15:48:11 +00:00
Seatmap rendering and other updates
This commit is contained in:
@@ -32,10 +32,8 @@ export class SeatsService {
|
||||
|
||||
const response = {
|
||||
coaches: assignments.map((a) => {
|
||||
// Include all seats (both valid and removed with negative seatNumbers)
|
||||
const allSeats = a.coach.seats;
|
||||
const seatClassNames = a.coach.coachType.seatClasses.map((sc: any) => sc.name);
|
||||
const seatClass = seatClassNames.length > 0 ? seatClassNames[0] : 'Standard';
|
||||
|
||||
return {
|
||||
id: a.coach.id,
|
||||
@@ -44,7 +42,8 @@ export class SeatsService {
|
||||
label: a.coach.number,
|
||||
mode: a.coach.status,
|
||||
name: `Coach ${a.coach.number}`,
|
||||
seatClass,
|
||||
seatClasses: seatClassNames,
|
||||
seatClass: seatClassNames.length > 0 ? seatClassNames[0] : 'Standard',
|
||||
positionNumber: a.positionNumber,
|
||||
seatArrangement: a.coach.arrangement,
|
||||
totalSeats: a.coach.capacity,
|
||||
|
||||
Reference in New Issue
Block a user