File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff 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 : 'Exporting 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 ) {
Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ axios.interceptors.request.use((config) => {
1313 config . headers . setAccept ( 'application/json' ) ;
1414
1515 // Do not set timeout for setup (can be CPU intensive, especially on slow server)
16- if ( config . url !== '/v1/setup' && config . url !== '/v1/instrument-records/upload' ) {
16+ if (
17+ config . url !== '/v1/setup' &&
18+ config . url !== '/v1/instrument-records/upload' &&
19+ config . url !== '/v1/instrument-records/export'
20+ ) {
1721 config . timeout = 10000 ; // abort request after 10 seconds
1822 config . timeoutErrorMessage = i18n . t ( {
1923 en : 'Network Error' ,
You can’t perform that action at this time.
0 commit comments