add unsuccessful socket listener for model import events

This commit is contained in:
Lincoln Stein
2023-07-17 22:01:37 -04:00
parent ad312fa1ec
commit 399d505801

View File

@ -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,
})
)
);
});
};