Historia dr scenerii: dodano odnośniki do dziennika

This commit is contained in:
2022-07-12 11:20:19 +02:00
parent 506064cf9a
commit 4b0d9b887e
@@ -1,5 +1,5 @@
<template> <template>
<section class="scenery-dispatchers-history scenery-section"> <section class="scenery-dispatchers-history scenery-section">
<Loading v-if="dataStatus != 2" /> <Loading v-if="dataStatus != 2" />
<div class="list-warning" v-else-if="dispatcherHistoryList.length == 0">{{ $t('scenery.history-list-empty') }}</div> <div class="list-warning" v-else-if="dispatcherHistoryList.length == 0">{{ $t('scenery.history-list-empty') }}</div>
@@ -7,8 +7,10 @@
<ul class="history-list" v-else> <ul class="history-list" v-else>
<li class="list-item" v-for="historyItem in dispatcherHistoryList"> <li class="list-item" v-for="historyItem in dispatcherHistoryList">
<div> <div>
<span class="text--grayed">#{{ historyItem.stationHash }}&nbsp;</span> <router-link :to="`/journal/dispatchers?dispatcherName=${historyItem.dispatcherName}`">
<b class="text--primary">{{ historyItem.dispatcherName }}</b> <span class="text--grayed">#{{ historyItem.stationHash }}&nbsp;</span>
<b>{{ historyItem.dispatcherName }}</b>
</router-link>
</div> </div>
<div v-if="historyItem.timestampTo"> <div v-if="historyItem.timestampTo">
@@ -22,7 +24,6 @@
{{ $t('journal.online-since') }} {{ $t('journal.online-since') }}
<b>{{ timestampToString(historyItem.timestampFrom) }}</b> <b>{{ timestampToString(historyItem.timestampFrom) }}</b>
({{ calculateDuration(historyItem.currentDuration) }}) ({{ calculateDuration(historyItem.currentDuration) }})
<span></span>
</div> </div>
</li> </li>
</ul> </ul>
@@ -80,7 +81,6 @@ export default defineComponent({
@import '../../styles/responsive.scss'; @import '../../styles/responsive.scss';
@import '../../styles/SceneryView/styles.scss'; @import '../../styles/SceneryView/styles.scss';
.history-list { .history-list {
padding: 0 0.5em; padding: 0 0.5em;
} }