Fixes: cancel button disabled after model change

This commit is contained in:
psychedelicious 2022-10-31 14:33:51 +11:00
parent 5841e1b5be
commit 6ebddf09c2
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>InvokeAI - A Stable Diffusion Toolkit</title>
<link rel="shortcut icon" type="icon" href="./assets/favicon.0d253ced.ico" />
<script type="module" crossorigin src="./assets/index.a0494439.js"></script>
<script type="module" crossorigin src="./assets/index.5735336f.js"></script>
<link rel="stylesheet" href="./assets/index.bb945c0a.css">
</head>

View File

@ -372,7 +372,7 @@ const makeSocketIOListeners = (
dispatch(setModelList(model_list));
dispatch(setCurrentStatus('Model Changed'));
dispatch(setIsProcessing(false));
dispatch(setIsCancelable(false));
dispatch(setIsCancelable(true));
dispatch(
addLogEntry({
timestamp: dateFormat(new Date(), 'isoDateTime'),
@ -385,7 +385,7 @@ const makeSocketIOListeners = (
const { model_name, model_list } = data;
dispatch(setModelList(model_list));
dispatch(setIsProcessing(false));
dispatch(setIsCancelable(false));
dispatch(setIsCancelable(true));
dispatch(errorOccurred());
dispatch(
addLogEntry({