cloudmr-ux 1.3.7 → 1.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -1
- package/dist/index.mjs +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -408,7 +408,13 @@ function CmrUploadWindow({
|
|
|
408
408
|
setUpBtnText("Uploading");
|
|
409
409
|
};
|
|
410
410
|
const changeFileName = (e) => {
|
|
411
|
-
|
|
411
|
+
const value = e.target.value;
|
|
412
|
+
setFileAlias(value);
|
|
413
|
+
if (INVALID_ALIAS_REGEX.test(value)) {
|
|
414
|
+
setUploadBoxWarning("Alias cannot contain space, . , : % > <");
|
|
415
|
+
} else {
|
|
416
|
+
setUploadBoxWarning(void 0);
|
|
417
|
+
}
|
|
412
418
|
};
|
|
413
419
|
function loadFiles(files) {
|
|
414
420
|
if (files.length == 0) {
|
package/dist/index.mjs
CHANGED
|
@@ -360,7 +360,13 @@ function CmrUploadWindow({
|
|
|
360
360
|
setUpBtnText("Uploading");
|
|
361
361
|
};
|
|
362
362
|
const changeFileName = (e) => {
|
|
363
|
-
|
|
363
|
+
const value = e.target.value;
|
|
364
|
+
setFileAlias(value);
|
|
365
|
+
if (INVALID_ALIAS_REGEX.test(value)) {
|
|
366
|
+
setUploadBoxWarning("Alias cannot contain space, . , : % > <");
|
|
367
|
+
} else {
|
|
368
|
+
setUploadBoxWarning(void 0);
|
|
369
|
+
}
|
|
364
370
|
};
|
|
365
371
|
function loadFiles(files) {
|
|
366
372
|
if (files.length == 0) {
|