From 4ddc7345df2d95eff3505fc3bfaa7791601797c3 Mon Sep 17 00:00:00 2001 From: Spythere Date: Tue, 16 May 2023 02:40:08 +0200 Subject: [PATCH] =?UTF-8?q?poprawki=20filtr=C3=B3w=20RJ?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/StationsView/StationTable.vue | 24 +++++++++----------- src/scripts/data/stationHeaderNames.ts | 12 ++-------- 2 files changed, 13 insertions(+), 23 deletions(-) diff --git a/src/components/StationsView/StationTable.vue b/src/components/StationsView/StationTable.vue index d7384fb..5f7fbd7 100644 --- a/src/components/StationsView/StationTable.vue +++ b/src/components/StationsView/StationTable.vue @@ -202,33 +202,31 @@ {{ station.onlineInfo?.currentUsers || 0 }} / - {{ station.onlineInfo?.maxUsers || 0 }} + {{ station.onlineInfo?.maxUsers || 0 }} - {{ station.onlineInfo?.spawns.length || 0 }} + {{ station.onlineInfo?.spawns.length || 0 }} - + {{ station.onlineInfo?.scheduledTrains?.length || 0 }} - / - - {{ station.onlineInfo?.scheduledTrains?.filter((train) => train.stopInfo.confirmed).length || 0 }} - - / + + + {{ station.onlineInfo?.scheduledTrains?.filter((train) => !train.stopInfo.confirmed).length || 0 }} - + + + {{ station.onlineInfo?.scheduledTrains?.filter((train) => train.stopInfo.confirmed).length || 0 }} + + diff --git a/src/scripts/data/stationHeaderNames.ts b/src/scripts/data/stationHeaderNames.ts index 70b1b75..0f954d6 100644 --- a/src/scripts/data/stationHeaderNames.ts +++ b/src/scripts/data/stationHeaderNames.ts @@ -1,13 +1,5 @@ -export const headIds = [ - 'station', - 'min-lvl', - 'status', - 'dispatcher', - 'dispatcher-lvl', - 'routes', - 'general', -] as const; +export const headIds = ['station', 'min-lvl', 'status', 'dispatcher', 'dispatcher-lvl', 'routes', 'general'] as const; -export const headIconsIds = ['user', 'spawn', 'timetableAll', 'timetableConfirmed', 'timetableUnconfirmed'] as const; +export const headIconsIds = ['user', 'spawn', 'timetableAll', 'timetableUnconfirmed', 'timetableConfirmed'] as const; export type HeadIdsTypes = typeof headIds[number] | typeof headIconsIds[number];