mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-04 13:58:12 +00:00
fix: other driver's trains broken listing
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user