mirror of https://github.com/morpheus65535/bazarr
Fix display for notification task in progress
This commit is contained in:
parent
f5d7b4d321
commit
9f2ba673de
|
@ -2,7 +2,7 @@ import queryClient from "@/apis/queries";
|
|||
import { QueryKeys } from "@/apis/queries/keys";
|
||||
import { LOG } from "@/utilities/console";
|
||||
import { setCriticalError, setOnlineStatus } from "@/utilities/event";
|
||||
import { showNotification } from "@mantine/notifications";
|
||||
import { cleanNotifications, showNotification } from "@mantine/notifications";
|
||||
import { notification, task } from "../task";
|
||||
|
||||
export function createDefaultReducer(): SocketIO.Reducer[] {
|
||||
|
@ -15,6 +15,7 @@ export function createDefaultReducer(): SocketIO.Reducer[] {
|
|||
key: "connect_error",
|
||||
any: () => {
|
||||
setCriticalError("Cannot connect to backend");
|
||||
cleanNotifications();
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
@ -126,6 +126,7 @@ class TaskDispatcher {
|
|||
} else {
|
||||
showNotification(notification.progress.pending(item.id, item.header));
|
||||
this.progress[item.id] = item;
|
||||
this.updateProgress(items);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue