mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-04 22:08:12 +00:00
fix: other driver's trains broken listing
This commit is contained in:
@@ -5,7 +5,9 @@
|
||||
<p class="text--grayed">
|
||||
{{ $t('trains.driver-not-found-desc-1') }} <br />
|
||||
{{ $t('trains.driver-not-found-desc-2') }}
|
||||
<router-link to="/journal/timetables">{{ $t('trains.driver-not-found-journal') }} </router-link>!
|
||||
<router-link to="/journal/timetables"
|
||||
>{{ $t('trains.driver-not-found-journal') }} </router-link
|
||||
>!
|
||||
</p>
|
||||
|
||||
<p v-if="props.trainId && otherDriverTrains.length > 0">
|
||||
@@ -41,7 +43,7 @@ const mainStore = useMainStore();
|
||||
const props = defineProps({
|
||||
trainId: {
|
||||
type: String
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
const otherDriverTrains = computed(() => {
|
||||
@@ -53,7 +55,6 @@ const otherDriverTrains = computed(() => {
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.driver-not-found {
|
||||
background-color: var(--clr-view-bg);
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<Loading v-else-if="apiStore.dataStatuses.connection == Status.Data.Loading" />
|
||||
|
||||
<DriverNotFound v-else />
|
||||
<DriverNotFound v-else :trainId="props.trainId" />
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user