mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
add unsuccessful socket listener for model import events
This commit is contained in:
@ -144,4 +144,19 @@ export const setEventListeners = (arg: SetEventListenersArg) => {
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
/**
|
||||
* Model import started
|
||||
*/
|
||||
socket.on('model_import_started', (import_path) => {
|
||||
dispatch(
|
||||
addToast(
|
||||
makeToast({
|
||||
title: 'Importing model ${import_path}',
|
||||
status: 'info',
|
||||
duration: 10000,
|
||||
})
|
||||
)
|
||||
);
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user