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,6 +1,6 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { ref } from "vue";
|
||||
import { SSEManager } from "@/SSEManager";
|
||||
import { SSEManager, SSEMessage } from "@/SSEManager";
|
||||
import { ReviewTask } from "@/types";
|
||||
import { useSessionStore } from "@/store/session";
|
||||
|
||||
|
|
@ -11,8 +11,8 @@ export const useReviewTaskStore = defineStore("review-task", () => {
|
|||
const error = ref<string | null>(null);
|
||||
|
||||
// Subscription
|
||||
SSEManager.subscribe("*", (e) => {
|
||||
if (e.resource.startsWith("review-task")) {
|
||||
SSEManager.subscribe((msg: SSEMessage) => {
|
||||
if (msg.resource.startsWith("sync:review-task")) {
|
||||
fetchAll();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue