|
@@ -1,6 +1,7 @@
|
|
import React from 'react';
|
|
import React from 'react';
|
|
import UploadService from 'services/uploadService';
|
|
import UploadService from 'services/uploadService';
|
|
import { getToken } from 'utils/common/key';
|
|
import { getToken } from 'utils/common/key';
|
|
|
|
+import { ERR_NO_INTERNET_CONNECTION } from './CreateCollection';
|
|
import DropzoneWrapper from './DropzoneWrapper';
|
|
import DropzoneWrapper from './DropzoneWrapper';
|
|
|
|
|
|
function CollectionDropZone({
|
|
function CollectionDropZone({
|
|
@@ -32,6 +33,8 @@ function CollectionDropZone({
|
|
if (err.response) {
|
|
if (err.response) {
|
|
setBannerErrorCode(err.response.status);
|
|
setBannerErrorCode(err.response.status);
|
|
}
|
|
}
|
|
|
|
+ setBannerErrorCode(ERR_NO_INTERNET_CONNECTION);
|
|
|
|
+ setProgressView(false);
|
|
}
|
|
}
|
|
};
|
|
};
|
|
return (
|
|
return (
|