added HPG VEhicles Mission, Audio settings; mission Context menu
This commit is contained in:
@@ -1,19 +1,13 @@
|
||||
import { create } from "zustand";
|
||||
import { dispatchSocket } from "../../dispatch/socket";
|
||||
import toast from "react-hot-toast";
|
||||
import { HPGnotificationToast } from "_components/customToasts/HPGnotification";
|
||||
import { NotificationPayload } from "@repo/db";
|
||||
import { useAudioStore } from "_store/audioStore";
|
||||
|
||||
interface ConnectionStore {
|
||||
status: "connected" | "disconnected" | "connecting" | "error";
|
||||
message: string;
|
||||
selectedZone: string;
|
||||
logoffTime: string;
|
||||
connect: (
|
||||
uid: string,
|
||||
selectedZone: string,
|
||||
logoffTime: string,
|
||||
) => Promise<void>;
|
||||
connect: (uid: string, selectedZone: string, logoffTime: string) => Promise<void>;
|
||||
disconnect: () => void;
|
||||
}
|
||||
|
||||
@@ -40,7 +34,7 @@ export const useDispatchConnectionStore = create<ConnectionStore>((set) => ({
|
||||
|
||||
dispatchSocket.on("connect", () => {
|
||||
const { logoffTime, selectedZone } = useDispatchConnectionStore.getState();
|
||||
|
||||
useAudioStore.getInitialState().connect("LST_01");
|
||||
dispatchSocket.emit("connect-dispatch", {
|
||||
logoffTime,
|
||||
selectedZone,
|
||||
|
||||
Reference in New Issue
Block a user