mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Filtrowanie kategoriami RJ (w.i.p.)
This commit is contained in:
@@ -82,7 +82,7 @@
|
||||
import ActionButton from "@/components/Global/ActionButton.vue";
|
||||
|
||||
import Train from "@/scripts/interfaces/Train";
|
||||
import { computed, defineComponent } from "@vue/runtime-core";
|
||||
import { computed, defineComponent, inject } from "@vue/runtime-core";
|
||||
|
||||
export default defineComponent({
|
||||
components: { ActionButton },
|
||||
@@ -220,12 +220,16 @@ export default defineComponent({
|
||||
return [twrList.length, skrList.length];
|
||||
});
|
||||
|
||||
/* Inject list from TrainsView for category filter */
|
||||
const chosenTrainCategories = inject("chosenTrainCategories") as string[];
|
||||
|
||||
return {
|
||||
speedStats,
|
||||
timetableStats,
|
||||
categoryList,
|
||||
locoList,
|
||||
specialTrainCount,
|
||||
chosenTrainCategories
|
||||
};
|
||||
},
|
||||
});
|
||||
@@ -289,6 +293,10 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
/* .category {
|
||||
cursor: pointer;
|
||||
} */
|
||||
|
||||
.category,
|
||||
.special {
|
||||
&-list {
|
||||
|
||||
Reference in New Issue
Block a user