Make impersonation ending work, fix frontend events
This commit is contained in:
parent
522c5785a2
commit
4b87c74f41
18 changed files with 255 additions and 106 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { ref, computed } from "vue";
|
||||
import { Communication } from "../types";
|
||||
import { SSEManager } from "../SSEManager";
|
||||
import { SSEManager, SSEMessage } from "../SSEManager";
|
||||
import { useSessionStore } from "./session";
|
||||
|
||||
export const useCommunicationStore = defineStore("communication", () => {
|
||||
|
|
@ -11,8 +11,8 @@ export const useCommunicationStore = defineStore("communication", () => {
|
|||
const error = ref(null);
|
||||
|
||||
// Subscription
|
||||
SSEManager.subscribe("*", (e) => {
|
||||
if (e.resource.startsWith("rmo")) {
|
||||
SSEManager.subscribe((msg: SSEMessage) => {
|
||||
if (msg.resource.startsWith("rmo:")) {
|
||||
fetchAll();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue