chore
This commit is contained in:
parent
4a5fceb014
commit
c4922ad1d4
@ -93,6 +93,7 @@ const App: FC = observer(() => {
|
|||||||
}}
|
}}
|
||||||
position="top-center"
|
position="top-center"
|
||||||
autoClose={4000}
|
autoClose={4000}
|
||||||
|
pauseOnHover={true}
|
||||||
hideProgressBar={true}
|
hideProgressBar={true}
|
||||||
newestOnTop={true}
|
newestOnTop={true}
|
||||||
closeOnClick={false}
|
closeOnClick={false}
|
||||||
|
@ -94,6 +94,9 @@ export const RunButton: FC<{ onClickRun?: MouseEventHandler, iconMode?: boolean
|
|||||||
commonStore.setModelStatus(ModelStatus.Offline);
|
commonStore.setModelStatus(ModelStatus.Offline);
|
||||||
toast(t('Failed to switch model'), {type: 'error'});
|
toast(t('Failed to switch model'), {type: 'error'});
|
||||||
}
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
commonStore.setModelStatus(ModelStatus.Offline);
|
||||||
|
toast(t('Failed to switch model'), {type: 'error'});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user