feat: add translation for recordings table

This commit is contained in:
RohitR311
2024-12-21 15:18:16 +05:30
parent 5f9d21b140
commit 4a18bfc5fd

View File

@@ -261,14 +261,14 @@ export const RecordingsTable = ({ handleEditRecording, handleRunRecording, handl
checkRunsForRecording(row.id).then((result: boolean) => {
if (result) {
notify('warning', 'Cannot delete robot as it has associated runs');
notify('warning', t('recordingtable.notifications.delete_warning'));
}
})
deleteRecordingFromStorage(row.id).then((result: boolean) => {
if (result) {
setRows([]);
notify('success', 'Robot deleted successfully');
notify('success', t('recordingtable.notifications.delete_success'));
fetchRecordings();
}
})