🏗️ Wired up job queue control methods

This commit is contained in:
2023-11-14 13:25:12 -06:00
parent 8f9bc9dc84
commit be51f9b8f2
2 changed files with 41 additions and 23 deletions

View File

@@ -25,6 +25,13 @@ export const useStore = create((set, get) => ({
importJobQueue: {
successfulJobCount: 0,
failedJobCount: 0,
status: undefined,
setStatus: (status: string) =>
set(
produce((state) => {
state.importJobQueue.status = status;
}),
),
setJobCount: (jobType: string, count: Number) => {
switch (jobType) {
case "successful":