mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Dodano oznaczenia dla niewpisanych scenerii
This commit is contained in:
@@ -53,13 +53,7 @@
|
||||
|
||||
<td class="station_level">
|
||||
<span v-if="station.reqLevel" :style="calculateExpStyle(station.reqLevel, station.supportersOnly)">
|
||||
{{
|
||||
station.reqLevel && Number(station.reqLevel) > -1
|
||||
? Number(station.reqLevel) >= 2
|
||||
? station.reqLevel
|
||||
: 'L'
|
||||
: '?'
|
||||
}}
|
||||
{{ Number(station.reqLevel) > -1 ? (Number(station.reqLevel) >= 2 ? station.reqLevel : 'L') : '?' }}
|
||||
</span>
|
||||
|
||||
<span v-else>?</span>
|
||||
@@ -146,7 +140,7 @@
|
||||
/>
|
||||
|
||||
<img
|
||||
v-if="station.nonPublic || !station.reqLevel"
|
||||
v-if="station.nonPublic && Number(station.reqLevel) > -1"
|
||||
:src="lockIcon"
|
||||
alt="non-public"
|
||||
:title="$t('desc.non-public')"
|
||||
@@ -158,6 +152,13 @@
|
||||
alt="icon-unavailable"
|
||||
:title="$t('desc.unavailable')"
|
||||
/>
|
||||
|
||||
<img
|
||||
v-if="Number(station.reqLevel) < 0"
|
||||
:src="unknownIcon"
|
||||
alt="icon-unknown"
|
||||
:title="$t('desc.unknown')"
|
||||
/>
|
||||
</td>
|
||||
|
||||
<td class="station_users" :class="{ inactive: !station.online }">
|
||||
@@ -206,7 +207,6 @@ import { computed, ComputedRef, defineComponent } from '@vue/runtime-core';
|
||||
import { useStore } from '@/store';
|
||||
import { GETTERS } from '@/constants/storeConstants';
|
||||
import Station from '@/scripts/interfaces/Station';
|
||||
import Train from '@/scripts/interfaces/Train';
|
||||
|
||||
export default defineComponent({
|
||||
props: {
|
||||
@@ -235,6 +235,7 @@ export default defineComponent({
|
||||
SBLIcon: require('@/assets/icon-SBL.svg'),
|
||||
lockIcon: require('@/assets/icon-lock.svg'),
|
||||
unavailableIcon: require('@/assets/icon-unavailable.svg'),
|
||||
unknownIcon: require('@/assets/icon-unknown.svg'),
|
||||
|
||||
ascIcon: require('@/assets/icon-arrow-asc.svg'),
|
||||
descIcon: require('@/assets/icon-arrow-desc.svg'),
|
||||
|
||||
Reference in New Issue
Block a user