Make impersonation ending work, fix frontend events

This commit is contained in:
Eli Ribble 2026-04-02 21:31:31 +00:00
parent 522c5785a2
commit 4b87c74f41
No known key found for this signature in database
18 changed files with 255 additions and 106 deletions

View file

@ -1,7 +1,7 @@
import { defineStore } from "pinia";
import { ref, computed } from "vue";
import { Signal } from "../types";
import { SSEManager } from "../SSEManager";
import { SSEManager, type SSEMessage } from "../SSEManager";
import { useSessionStore } from "@/store/session";
export const useSignalStore = defineStore("signal", () => {
@ -11,8 +11,8 @@ export const useSignalStore = defineStore("signal", () => {
const error = ref(null);
// Subscription
SSEManager.subscribe("*", (e) => {
if (e.resource.startsWith("signal")) {
SSEManager.subscribe((msg: SSEMessage) => {
if (msg.resource.startsWith("sync:signal")) {
fetchAll();
}
});