parent
0d99bd3971
commit
311b66361e
1 changed files with 4 additions and 0 deletions
|
|
@ -456,6 +456,7 @@ const useFlowStore = create<FlowStoreType>((set, get) => ({
|
||||||
setLockChat?: (lock: boolean) => void;
|
setLockChat?: (lock: boolean) => void;
|
||||||
}) => {
|
}) => {
|
||||||
get().setIsBuilding(true);
|
get().setIsBuilding(true);
|
||||||
|
get().setLockChat(true);
|
||||||
const currentFlow = useFlowsManagerStore.getState().currentFlow;
|
const currentFlow = useFlowsManagerStore.getState().currentFlow;
|
||||||
const setSuccessData = useAlertStore.getState().setSuccessData;
|
const setSuccessData = useAlertStore.getState().setSuccessData;
|
||||||
const setErrorData = useAlertStore.getState().setErrorData;
|
const setErrorData = useAlertStore.getState().setErrorData;
|
||||||
|
|
@ -578,6 +579,7 @@ const useFlowStore = create<FlowStoreType>((set, get) => ({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
get().setIsBuilding(false);
|
get().setIsBuilding(false);
|
||||||
|
get().setLockChat(false);
|
||||||
},
|
},
|
||||||
onBuildUpdate: handleBuildUpdate,
|
onBuildUpdate: handleBuildUpdate,
|
||||||
onBuildError: (title: string, list: string[], elementList) => {
|
onBuildError: (title: string, list: string[], elementList) => {
|
||||||
|
|
@ -587,6 +589,7 @@ const useFlowStore = create<FlowStoreType>((set, get) => ({
|
||||||
useFlowStore.getState().updateBuildStatus(idList, BuildStatus.BUILT);
|
useFlowStore.getState().updateBuildStatus(idList, BuildStatus.BUILT);
|
||||||
setErrorData({ list, title });
|
setErrorData({ list, title });
|
||||||
get().setIsBuilding(false);
|
get().setIsBuilding(false);
|
||||||
|
get().setLockChat(false);
|
||||||
},
|
},
|
||||||
onBuildStart: (elementList) => {
|
onBuildStart: (elementList) => {
|
||||||
const idList = elementList
|
const idList = elementList
|
||||||
|
|
@ -600,6 +603,7 @@ const useFlowStore = create<FlowStoreType>((set, get) => ({
|
||||||
edges: !get().onFlowPage ? get().edges : undefined,
|
edges: !get().onFlowPage ? get().edges : undefined,
|
||||||
});
|
});
|
||||||
get().setIsBuilding(false);
|
get().setIsBuilding(false);
|
||||||
|
get().setLockChat(false);
|
||||||
get().revertBuiltStatusFromBuilding();
|
get().revertBuiltStatusFromBuilding();
|
||||||
},
|
},
|
||||||
getFlow: () => {
|
getFlow: () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue