Naprawienie krytycznego błędu z wyświetlaniem niepublicznych stacji

This commit is contained in:
2020-07-05 14:02:59 +02:00
parent ee2b5ddc07
commit e545ac1261
2 changed files with 32 additions and 9 deletions
+11 -9
View File
@@ -2,6 +2,7 @@
<div class="list"> <div class="list">
<Card :stationInfo="focusedStationInfo" :closeCard="closeCard" /> <Card :stationInfo="focusedStationInfo" :closeCard="closeCard" />
<div class="table-wrapper"> <div class="table-wrapper">
<!-- <ListFilter /> -->
<table class="table"> <table class="table">
<thead> <thead>
<tr> <tr>
@@ -69,13 +70,13 @@
<td class="tracks twoway"> <td class="tracks twoway">
<span <span
v-if="station.routes.twoWay.catenary > 0" v-if="station.routes && station.routes.twoWay.catenary > 0"
class="track catenary" class="track catenary"
:title="'Liczba zelektryfikowanych szlaków dwutorowych: ' + station.routes.twoWay.catenary" :title="'Liczba zelektryfikowanych szlaków dwutorowych: ' + station.routes.twoWay.catenary"
>{{station.routes.twoWay.catenary}}</span> >{{station.routes.twoWay.catenary}}</span>
<span <span
v-if="station.routes.twoWay.noCatenary > 0" v-if="station.routes && station.routes.twoWay.noCatenary > 0"
class="track no-catenary" class="track no-catenary"
:title="'Liczba niezelektryfikowanych szlaków dwutorowych: ' + station.routes.twoWay.noCatenary" :title="'Liczba niezelektryfikowanych szlaków dwutorowych: ' + station.routes.twoWay.noCatenary"
>{{station.routes.twoWay.noCatenary}}</span> >{{station.routes.twoWay.noCatenary}}</span>
@@ -83,13 +84,13 @@
<td class="tracks oneway"> <td class="tracks oneway">
<span <span
v-if="station.routes.oneWay.catenary > 0" v-if="station.routes && station.routes.oneWay.catenary > 0"
class="track catenary" class="track catenary"
:title="'Liczba zelektryfikowanych szlaków jednotorowych: ' + station.routes.oneWay.catenary" :title="'Liczba zelektryfikowanych szlaków jednotorowych: ' + station.routes.oneWay.catenary"
>{{station.routes.oneWay.catenary}}</span> >{{station.routes.oneWay.catenary}}</span>
<span <span
v-if="station.routes.oneWay.noCatenary > 0" v-if="station.routes && station.routes.oneWay.noCatenary > 0"
class="track no-catenary" class="track no-catenary"
:title="'Liczba niezelektryfikowanych szlaków jednotorowych: ' + station.routes.oneWay.noCatenary" :title="'Liczba niezelektryfikowanych szlaków jednotorowych: ' + station.routes.oneWay.noCatenary"
>{{station.routes.oneWay.noCatenary}}</span> >{{station.routes.oneWay.noCatenary}}</span>
@@ -105,11 +106,13 @@ import Vue from "vue";
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import Card from "@/components/ui/Card.vue"; import Card from "@/components/ui/Card.vue";
import ListFilter from "@/components/utils/ListFilter.vue";
export default Vue.extend({ export default Vue.extend({
name: "List", name: "List",
components: { components: {
Card Card,
ListFilter
}, },
data: () => ({ data: () => ({
focusedStationName: "" focusedStationName: ""
@@ -216,10 +219,9 @@ ul {
.table { .table {
&-wrapper { &-wrapper {
display: flex;
justify-content: center;
overflow-x: auto; overflow-x: auto;
position: relative;
} }
display: block; display: block;
@@ -228,7 +230,7 @@ ul {
white-space: nowrap; white-space: nowrap;
border-collapse: collapse; border-collapse: collapse;
font-size: calc(0.6rem + 0.5vw); font-size: calc(0.6rem + 0.4vw);
cursor: pointer; cursor: pointer;
thead th { thead th {
+21
View File
@@ -0,0 +1,21 @@
<template>
<div class="list-filter">
<button class="filter-swtich">Rozwiń filtry</button>
</div>
</template>
<script lang="ts">
import Vue from "vue";
export default Vue.extend({});
</script>
<style lang="scss" scoped>
.list-filter {
}
button.filter-swtich {
border: none;
background: none;
outline: none;
}
</style>