contentoh-components-library 21.3.28 → 21.3.29
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.
|
@@ -409,13 +409,24 @@ var ContainerItems = function ContainerItems(props) {
|
|
|
409
409
|
|
|
410
410
|
if (!date) {
|
|
411
411
|
date = (0, _utils.getFullDate)(new Date(item.date));
|
|
412
|
-
|
|
412
|
+
|
|
413
|
+
if (item.type === "statusTicket") {
|
|
414
|
+
[ticketCompany, 254].includes(currentUser.companyId) && jsxItems.push(renderGrayLabel(date, "itemDate-".concat(countDate++)));
|
|
415
|
+
} else {
|
|
416
|
+
jsxItems.push(renderGrayLabel(date, "itemDate-".concat(countDate++)));
|
|
417
|
+
}
|
|
418
|
+
|
|
413
419
|
lastUserId = undefined;
|
|
414
420
|
} else {
|
|
415
421
|
var newDate = (0, _utils.getFullDate)(new Date(item.date));
|
|
416
422
|
|
|
417
423
|
if (newDate !== date) {
|
|
418
|
-
|
|
424
|
+
if (item.type === "statusTicket") {
|
|
425
|
+
[ticketCompany, 254].includes(currentUser.companyId) && jsxItems.push(renderGrayLabel(date, "itemDate-".concat(countDate++)));
|
|
426
|
+
} else {
|
|
427
|
+
jsxItems.push(renderGrayLabel(date, "itemDate-".concat(countDate++)));
|
|
428
|
+
}
|
|
429
|
+
|
|
419
430
|
date = newDate;
|
|
420
431
|
lastUserId = undefined;
|
|
421
432
|
}
|
package/package.json
CHANGED
|
@@ -421,13 +421,22 @@ export const ContainerItems = (props) => {
|
|
|
421
421
|
// manejo de las etiquetas fechas
|
|
422
422
|
if (!date) {
|
|
423
423
|
date = getFullDate(new Date(item.date));
|
|
424
|
-
|
|
424
|
+
if (item.type === "statusTicket") {
|
|
425
|
+
[ticketCompany, 254].includes(currentUser.companyId) &&
|
|
426
|
+
jsxItems.push(renderGrayLabel(date, `itemDate-${countDate++}`));
|
|
427
|
+
} else {
|
|
425
428
|
jsxItems.push(renderGrayLabel(date, `itemDate-${countDate++}`));
|
|
429
|
+
}
|
|
426
430
|
lastUserId = undefined;
|
|
427
431
|
} else {
|
|
428
432
|
let newDate = getFullDate(new Date(item.date));
|
|
429
433
|
if (newDate !== date) {
|
|
430
|
-
|
|
434
|
+
if (item.type === "statusTicket") {
|
|
435
|
+
[ticketCompany, 254].includes(currentUser.companyId) &&
|
|
436
|
+
jsxItems.push(renderGrayLabel(date, `itemDate-${countDate++}`));
|
|
437
|
+
} else {
|
|
438
|
+
jsxItems.push(renderGrayLabel(date, `itemDate-${countDate++}`));
|
|
439
|
+
}
|
|
431
440
|
date = newDate;
|
|
432
441
|
lastUserId = undefined;
|
|
433
442
|
}
|