Actually fetch communication from the store
This commit is contained in:
parent
03301518f0
commit
821647cef1
3 changed files with 5 additions and 4 deletions
|
|
@ -10,7 +10,7 @@ import (
|
|||
)
|
||||
|
||||
type contentURLAPI struct {
|
||||
Communication string `json:"api"`
|
||||
Communication string `json:"communication"`
|
||||
}
|
||||
type contentURLs struct {
|
||||
API contentURLAPI `json:"api"`
|
||||
|
|
|
|||
|
|
@ -40,6 +40,6 @@ export const useCommunicationStore = defineStore("communication", () => {
|
|||
// State
|
||||
all,
|
||||
// Actions
|
||||
fetch,
|
||||
fetchAll,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue