Skip to content

Commit 1b6d2ca

Browse files
committed
feat: add notification for exporting datahub records
1 parent b2d3733 commit 1b6d2ca

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

apps/web/src/features/datahub/pages/DataHubPage.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ export const DataHubPage = () => {
4242

4343
const handleExportSelection = (option: 'CSV' | 'Excel' | 'JSON') => {
4444
const baseFilename = `${currentUser!.username}_${new Date().toISOString()}`;
45+
addNotification({
46+
message: t({
47+
en: 'Downloading entries, please wait...',
48+
fr: 'Téléchargement des entrées, veuillez patienter...'
49+
}),
50+
type: 'info'
51+
});
4552
getExportRecords()
4653
.then((data): any => {
4754
switch (option) {

0 commit comments

Comments
 (0)