mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): close starter models toast when a model is installed
This commit is contained in:
parent
abc133e936
commit
0ba57d6dc5
@ -17,7 +17,11 @@ export const useStarterModelsToast = () => {
|
||||
|
||||
useEffect(() => {
|
||||
if (toast.isActive(TOAST_ID)) {
|
||||
return;
|
||||
if (mainModels.length === 0) {
|
||||
return;
|
||||
} else {
|
||||
toast.close(TOAST_ID);
|
||||
}
|
||||
}
|
||||
if (data && mainModels.length === 0 && !didToast && isEnabled) {
|
||||
toast({
|
||||
|
Loading…
Reference in New Issue
Block a user