feat: loading timetable from url params

This commit is contained in:
2025-02-02 14:45:59 +01:00
parent ff14e362bb
commit c0bdee939d
4 changed files with 21 additions and 9 deletions
+2 -1
View File
@@ -41,7 +41,8 @@ export const useApiStore = defineStore('api', {
});
this.fetchSceneriesData();
this.fetchActiveData();
await this.fetchActiveData();
setInterval(() => {
this.fetchActiveData();
+1
View File
@@ -8,6 +8,7 @@ export const useGlobalStore = defineStore('global', {
darkMode: false,
viewMode: 'active' as ViewMode,
selectedTrainId: null as string | null,
selectedActiveTrain: null as ActiveTrain | null,
selectedStorageTimetable: null as TimetableData | null,
storageTimetables: {} as Record<number, TimetableData>,