Get latest syncs from the API
This commit is contained in:
parent
347e8dcb86
commit
28ec1c3d67
6 changed files with 89 additions and 30 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue