Skip to content

Commit acbd6e0

Browse files
committed
fixed bug with loading screen
1 parent 5f15bf7 commit acbd6e0

File tree

1 file changed

+60
-58
lines changed

1 file changed

+60
-58
lines changed

Diff for: src/views/Stop.vue

+60-58
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,56 @@
11
<template>
2-
<vue-element-loading
3-
v-if="$apollo.loading"
4-
background-color="rgba(0, 0, 0, .6)"
5-
:active="$apollo.loading"
6-
color="white"
7-
spinner="bar-fade-scale"
8-
/>
9-
<div
10-
v-else
11-
class="w-full flex"
12-
>
13-
<div class="w-1/3 px-3 pt-2 ">
14-
<div class="sticky top-0">
15-
<div>
16-
Selected date:
17-
<v-date-picker
18-
v-model="selectedDate"
19-
is-dark
20-
>
21-
<p class="inline-block small-input pl-1">
22-
{{ selectedDate.toDateString() }}
23-
</p>
24-
</v-date-picker>
25-
</div>
26-
<div class="mt-2">
27-
<span>Threshold for frequent service:</span>
28-
<input
29-
v-model="fsThreshold"
30-
v-autowidth="{maxWidth: '960px', minWidth: '10px', comfortZone: 0}"
31-
class="small-input pl-1"
32-
type="number"
33-
> minutes.
34-
<vue-slider
35-
v-model="fsThreshold"
36-
class="mt-1"
37-
tooltip="none"
38-
:max="120"
39-
:min="1"
40-
:contained="true"
41-
/>
42-
</div>
43-
<div class="mt-2">
44-
<v-select
45-
v-model="selectedRoutes"
46-
multiple
47-
label="route_short_name"
48-
:options="feed.stop.routes"
49-
/>
50-
</div>
51-
<div class="w-full mt-2">
52-
<!-- <div
2+
<div>
3+
<vue-element-loading
4+
v-if="$apollo.loading"
5+
background-color="rgba(0, 0, 0, .6)"
6+
:active="$apollo.loading"
7+
color="white"
8+
spinner="bar-fade-scale"
9+
/>
10+
<div
11+
v-else
12+
class="w-full flex"
13+
>
14+
<div class="w-1/3 px-3 pt-2 ">
15+
<div class="sticky top-0">
16+
<div>
17+
Selected date:
18+
<v-date-picker
19+
v-model="selectedDate"
20+
is-dark
21+
>
22+
<p class="inline-block small-input pl-1">
23+
{{ selectedDate.toDateString() }}
24+
</p>
25+
</v-date-picker>
26+
</div>
27+
<div class="mt-2">
28+
<span>Threshold for frequent service:</span>
29+
<input
30+
v-model="fsThreshold"
31+
v-autowidth="{maxWidth: '960px', minWidth: '10px', comfortZone: 0}"
32+
class="small-input pl-1"
33+
type="number"
34+
> minutes.
35+
<vue-slider
36+
v-model="fsThreshold"
37+
class="mt-1"
38+
tooltip="none"
39+
:max="120"
40+
:min="1"
41+
:contained="true"
42+
/>
43+
</div>
44+
<div class="mt-2">
45+
<v-select
46+
v-model="selectedRoutes"
47+
multiple
48+
label="route_short_name"
49+
:options="feed.stop.routes"
50+
/>
51+
</div>
52+
<div class="w-full mt-2">
53+
<!-- <div
5354
v-if="stats.loaded"
5455
class="border-t-2 mt-4 pt-4 border-white"
5556
>
@@ -59,15 +60,16 @@
5960
<p>Average gap: {{ stats.avgGap }} minutes.</p>
6061
<p>Total runs: {{ stats.totRuns }} runs.</p>
6162
</div> -->
63+
</div>
6264
</div>
6365
</div>
64-
</div>
65-
<div class="flex-grow">
66-
<stop-times-table
67-
:columns="fields"
68-
:rows="feed.stop.stop_times"
69-
:fs-threshold="fsThreshold"
70-
/>
66+
<div class="flex-grow">
67+
<stop-times-table
68+
:columns="fields"
69+
:rows="feed.stop.stop_times"
70+
:fs-threshold="fsThreshold"
71+
/>
72+
</div>
7173
</div>
7274
</div>
7375
</template>

0 commit comments

Comments
 (0)