This commit is contained in:
Julian Krauser 2024-09-18 09:58:29 +02:00
parent 6847ae083e
commit 509daeac1b
5 changed files with 15 additions and 9 deletions

View file

@ -6,12 +6,13 @@ import type {
} from "@/viewmodels/admin/communicationType.models";
import { http } from "@/serverCom";
import type { AxiosResponse } from "axios";
import type { CommunicationFieldType } from "../../types/fieldTypes";
export const useCommunicationTypeStore = defineStore("communicationType", {
state: () => {
return {
communicationTypes: [] as Array<CommunicationTypeViewModel>,
availableFields: [] as Array<string>,
availableFields: [] as Array<CommunicationFieldType>,
loading: "loading" as "loading" | "fetched" | "failed",
loadingFields: "loading" as "loading" | "fetched" | "failed",
};