fix: other driver's trains broken listing

This commit is contained in:
2025-04-26 13:45:27 +02:00
parent a602358241
commit fd28eb4609
2 changed files with 53 additions and 52 deletions
+4 -3
View File
@@ -5,7 +5,9 @@
<p class="text--grayed"> <p class="text--grayed">
{{ $t('trains.driver-not-found-desc-1') }} <br /> {{ $t('trains.driver-not-found-desc-1') }} <br />
{{ $t('trains.driver-not-found-desc-2') }} {{ $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>
<p v-if="props.trainId && otherDriverTrains.length > 0"> <p v-if="props.trainId && otherDriverTrains.length > 0">
@@ -41,7 +43,7 @@ const mainStore = useMainStore();
const props = defineProps({ const props = defineProps({
trainId: { trainId: {
type: String type: String
}, }
}); });
const otherDriverTrains = computed(() => { const otherDriverTrains = computed(() => {
@@ -53,7 +55,6 @@ const otherDriverTrains = computed(() => {
}); });
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.driver-not-found { .driver-not-found {
background-color: var(--clr-view-bg); background-color: var(--clr-view-bg);
+1 -1
View File
@@ -8,7 +8,7 @@
<Loading v-else-if="apiStore.dataStatuses.connection == Status.Data.Loading" /> <Loading v-else-if="apiStore.dataStatuses.connection == Status.Data.Loading" />
<DriverNotFound v-else /> <DriverNotFound v-else :trainId="props.trainId" />
</div> </div>
</section> </section>
</template> </template>