poprawki filtrów RJ

This commit is contained in:
2023-05-16 02:40:08 +02:00
parent 5d822684c0
commit 4ddc7345df
2 changed files with 13 additions and 23 deletions
+11 -13
View File
@@ -202,33 +202,31 @@
<span>
<span class="highlight">{{ station.onlineInfo?.currentUsers || 0 }}</span>
/
<span>{{ station.onlineInfo?.maxUsers || 0 }}</span>
<span class="highlight">{{ station.onlineInfo?.maxUsers || 0 }}</span>
</span>
</td>
<td class="station_spawns" :class="{ inactive: !station.onlineInfo }">
<span class="highlight">{{ station.onlineInfo?.spawns.length || 0 }}</span>
<span>{{ station.onlineInfo?.spawns.length || 0 }}</span>
</td>
<td class="station_schedules" colspan="3" style="width: 30px" :class="{ inactive: !station.onlineInfo }">
<td class="station_schedules" style="width: 30px" :class="{ inactive: !station.onlineInfo }">
<span class="highlight">
{{ station.onlineInfo?.scheduledTrains?.length || 0 }}
</span>
/
<span style="color: #66ff6c">
{{ station.onlineInfo?.scheduledTrains?.filter((train) => train.stopInfo.confirmed).length || 0 }}
</span>
/
</td>
<td class="station_schedules" style="width: 30px" :class="{ inactive: !station.onlineInfo }">
<span style="color: #ccc">
{{ station.onlineInfo?.scheduledTrains?.filter((train) => !train.stopInfo.confirmed).length || 0 }}
</span>
</td>
<!-- <td class="station_schedules" :class="{ inactive: !station.onlineInfo }">
{{
(station.onlineInfo?.scheduledTrains?.filter((train) => !train.stopInfo.confirmed).length || 0)
}}
</td> -->
<td class="station_schedules" style="width: 30px" :class="{ inactive: !station.onlineInfo }">
<span style="color: #66ff6c">
{{ station.onlineInfo?.scheduledTrains?.filter((train) => train.stopInfo.confirmed).length || 0 }}
</span>
</td>
</tr>
</tbody>
</table>
+2 -10
View File
@@ -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];