Skip to content

Commit f41ebd2

Browse files
committed
chore: add message when there is a large amount of entries to process
1 parent 636af2a commit f41ebd2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

apps/web/src/features/upload/pages/UploadPage.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ export const UploadPage = () => {
3838
data: processedDataResult.value,
3939
instrument: instrument!
4040
});
41+
if (reformattedData.records.length > 1000) {
42+
addNotification({
43+
message: t({
44+
en: 'Lots of entries, please wait...',
45+
fr: 'Plusieur de donnee, attendue si vous plait'
46+
}),
47+
type: 'info'
48+
});
49+
}
4150
uploadInstrumentRecordsMutation.mutate(reformattedData);
4251
} else {
4352
addNotification({

0 commit comments

Comments
 (0)