contentoh-components-library 21.4.140 → 21.4.141
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.
|
@@ -376,7 +376,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref3) {
|
|
|
376
376
|
while (1) {
|
|
377
377
|
switch (_context3.prev = _context3.next) {
|
|
378
378
|
case 0:
|
|
379
|
-
if (!(duracion > 15 && duracion <
|
|
379
|
+
if (!(duracion > 15 && duracion < 600)) {
|
|
380
380
|
_context3.next = 7;
|
|
381
381
|
break;
|
|
382
382
|
}
|
|
@@ -409,8 +409,8 @@ var RetailerProductEdition = function RetailerProductEdition(_ref3) {
|
|
|
409
409
|
case 7:
|
|
410
410
|
setModalAlert({
|
|
411
411
|
show: true,
|
|
412
|
-
title: "
|
|
413
|
-
message: "Los videos deben durar entre 15 segundos y
|
|
412
|
+
title: "Hubo un error al subir el video",
|
|
413
|
+
message: "Los videos deben durar entre 15 segundos y 10 minutos"
|
|
414
414
|
});
|
|
415
415
|
|
|
416
416
|
case 8:
|
package/package.json
CHANGED
|
@@ -204,7 +204,7 @@ export const RetailerProductEdition = ({
|
|
|
204
204
|
if (ext[ext.length - 1] == "mp4") {
|
|
205
205
|
obtenerDuracionVideoBase64(e.target.result)
|
|
206
206
|
.then(async (duracion) => {
|
|
207
|
-
if (duracion > 15 && duracion <
|
|
207
|
+
if (duracion > 15 && duracion < 600) {
|
|
208
208
|
img.src = await generateThumbnail(e.target.result, 2);
|
|
209
209
|
setTimeout(() => {
|
|
210
210
|
const width = img.width;
|
|
@@ -226,9 +226,9 @@ export const RetailerProductEdition = ({
|
|
|
226
226
|
} else {
|
|
227
227
|
setModalAlert({
|
|
228
228
|
show: true,
|
|
229
|
-
title: "
|
|
229
|
+
title: "Hubo un error al subir el video",
|
|
230
230
|
message:
|
|
231
|
-
"Los videos deben durar entre 15 segundos y
|
|
231
|
+
"Los videos deben durar entre 15 segundos y 10 minutos",
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
234
|
})
|