Get latest syncs from the API

This commit is contained in:
Eli Ribble 2026-04-14 19:05:10 +00:00
parent 347e8dcb86
commit 28ec1c3d67
No known key found for this signature in database
6 changed files with 89 additions and 30 deletions

View file

@ -159,6 +159,7 @@ import { onMounted, reactive } from "vue";
import MapAggregate from "@/components/MapAggregate.vue";
import { formatBigNumber, formatTimeRelative } from "@/format";
import { useSessionStore } from "@/store/session";
import { useStoreSync } from "@/store/sync";
import type { Bounds } from "@/type/api";
const dashboard = reactive({
@ -180,8 +181,12 @@ const dashboard = reactive({
},
recentRequests: [],
});
const storeSync = useStoreSync();
const session = useSessionStore();
onMounted(async () => {});
onMounted(async () => {
const syncs = await storeSync.fetchAll();
console.log("syncs", syncs);
});
function mapBounds(): Bounds | undefined {
if (session.organization?.service_area) {
return session.organization?.service_area;