mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
chore(scenery): added info box about no available best scores in scenery top list
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
<Loading v-if="listState == Status.Data.Loading" />
|
||||
<div v-else-if="listState == Status.Data.Error">Ups, coś poszło nie tak...</div>
|
||||
|
||||
<ul v-else>
|
||||
<ul v-else-if="bestScoreList.length > 0">
|
||||
<li v-for="(value, i) in bestScoreList">
|
||||
<div>
|
||||
{{ t('scenery.top-list.place', i + 1) }} -
|
||||
@@ -52,6 +52,11 @@
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div v-else class="no-data">
|
||||
<span v-if="currentListScope == 'name'">{{ t('scenery.top-list.no-data-general') }}</span>
|
||||
<span v-else>{{ t('scenery.top-list.no-data-current-hash') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -201,4 +206,11 @@ async function fetchTopDispatchersList() {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.no-data {
|
||||
padding: 1em 0.5em;
|
||||
font-size: 1.1em;
|
||||
background-color: #333;
|
||||
color: #ccc;
|
||||
}
|
||||
</style>
|
||||
|
||||
+5
-2
@@ -587,7 +587,7 @@
|
||||
"dispatcher-rate": "Rate:",
|
||||
"dispatcher-status-changes": "Status changes:",
|
||||
"req-level": "all dispatcher levels | dispatcher level {lvl} required | dispatcher level {lvl} required",
|
||||
"history-list-empty": "No recorded scenery history!",
|
||||
"history-list-empty": "No saved scenery history!",
|
||||
"forum-topic": "Scenery's forum topic",
|
||||
"gnr-link": "Train orders generator",
|
||||
"pragotron-link": "Timetable pallet board",
|
||||
@@ -606,7 +606,10 @@
|
||||
"place": "{n}. place",
|
||||
"dispatcher-rating": "Rating: {n}",
|
||||
"duty-count": "No duties | 1 duty | Duties: {n}",
|
||||
"duration": "Duration:"
|
||||
"duration": "Duration:",
|
||||
|
||||
"no-data-general": "No best scores for this scenery on the PL1 server!",
|
||||
"no-data-current-hash": "No best scores for the current scenery hash on the PL1 server!"
|
||||
}
|
||||
},
|
||||
"availability": {
|
||||
|
||||
+4
-1
@@ -592,7 +592,10 @@
|
||||
"place": "{n}. miejsce",
|
||||
"dispatcher-rating": "Ocena: {n}",
|
||||
"duty-count": "Brak dyżurów | 1 dyżur | Dyżury: {n}",
|
||||
"duration": "Czas:"
|
||||
"duration": "Czas:",
|
||||
|
||||
"no-data-general": "Brak zapisanych rekordów scenerii na serwerze PL1!",
|
||||
"no-data-current-hash": "Brak zapisanych rekordów scenerii z obecnym hashem na serwerze PL1!"
|
||||
}
|
||||
},
|
||||
"availability": {
|
||||
|
||||
Reference in New Issue
Block a user