Actually fetch communication from the store

This commit is contained in:
Eli Ribble 2026-03-22 03:01:49 +00:00
parent 03301518f0
commit 821647cef1
No known key found for this signature in database
3 changed files with 5 additions and 4 deletions

View file

@ -10,7 +10,7 @@ import (
)
type contentURLAPI struct {
Communication string `json:"api"`
Communication string `json:"communication"`
}
type contentURLs struct {
API contentURLAPI `json:"api"`

View file

@ -40,6 +40,6 @@ export const useCommunicationStore = defineStore("communication", () => {
// State
all,
// Actions
fetch,
fetchAll,
};
});

View file

@ -3,7 +3,7 @@
<div class="container-fluid h-100">
<div class="row h-100">
<!-- Left Column - Communications List -->
<CommunicationsColumnList all="communication.all" />
<CommunicationColumnList all="communication.all" />
<!-- Middle Column - Report Details -->
<div class="col-md-6 p-0">
@ -657,13 +657,14 @@ import maplibregl from "maplibre-gl";
import { useCommunicationStore } from "../store/communication";
import { useUserStore } from "../store/user";
import CommunicationColumnList from "../components/CommunicationColumnList.vue";
import MapMultipoint from "../components/MapMultipoint.vue";
import TimeRelative from "../components/TimeRelative.vue";
const communication = useCommunicationStore();
const user = useUserStore();
onMounted(() => {
communication.fetch();
fetchCommunications();
});
// Refs