feat: robot interpretation notify

This commit is contained in:
karishmas6
2024-11-29 17:03:43 +05:30
parent 46641a285a
commit 74c4abee21

View File

@@ -67,9 +67,9 @@ export const MainPage = ({ handleEditRecording }: MainPageProps) => {
interpretStoredRecording(runId).then(async (interpretation: boolean) => {
if (!aborted) {
if (interpretation) {
notify('success', `Interpretation of ${runningRecordingName} succeeded`);
notify('success', `Interpretation of robot ${runningRecordingName} succeeded`);
} else {
notify('success', `Failed to interpret ${runningRecordingName} recording`);
notify('success', `Failed to interpret ${runningRecordingName} robot`);
// destroy the created browser
await stopRecording(browserId);
}