mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-02 21:08:12 +00:00
chore: added info about offline driver for train info tooltip and scenery timetables
This commit is contained in:
@@ -134,6 +134,12 @@
|
|||||||
<b> {{ row.train.trainNo }}</b>
|
<b> {{ row.train.trainNo }}</b>
|
||||||
•
|
•
|
||||||
{{ row.train.driverName }}
|
{{ row.train.driverName }}
|
||||||
|
|
||||||
|
<i
|
||||||
|
class="fa-solid fa-user-slash"
|
||||||
|
style="color: salmon"
|
||||||
|
v-if="!row.train.online && row.train.lastSeen <= Date.now() - 60000"
|
||||||
|
></i>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<!-- Train stop comments -->
|
<!-- Train stop comments -->
|
||||||
|
|||||||
@@ -13,7 +13,12 @@
|
|||||||
|
|
||||||
<div class="text--grayed">
|
<div class="text--grayed">
|
||||||
{{ displayTrainPosition(trainInfo) }} - {{ trainInfo.speed }}km/h
|
{{ displayTrainPosition(trainInfo) }} - {{ trainInfo.speed }}km/h
|
||||||
|
<span v-if="!trainInfo.online" style="color: salmon">
|
||||||
|
- offline {{ lastSeenMessage(trainInfo.lastSeen) }}</span
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div></div>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -39,6 +44,10 @@ export default defineComponent({
|
|||||||
|
|
||||||
// Passed "content" string should be the desired train's ID
|
// Passed "content" string should be the desired train's ID
|
||||||
return this.mainStore.trainList.find((t) => t.id === this.tooltipStore.content);
|
return this.mainStore.trainList.find((t) => t.id === this.tooltipStore.content);
|
||||||
|
},
|
||||||
|
|
||||||
|
lastSceneryStatus() {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -110,7 +110,10 @@
|
|||||||
{{ $t('trains.scenery-offline') }}
|
{{ $t('trains.scenery-offline') }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="!train.online" class="train-badge offline">
|
<div
|
||||||
|
v-if="!train.online && train.lastSeen >= Date.now() - 60000"
|
||||||
|
class="train-badge offline"
|
||||||
|
>
|
||||||
<i class="fa-solid fa-user-slash"></i>
|
<i class="fa-solid fa-user-slash"></i>
|
||||||
Offline {{ lastSeenMessage(train.lastSeen) }}
|
Offline {{ lastSeenMessage(train.lastSeen) }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user