Merge branch 'master' into hotfix_ticketSale_hasChanges
gitea/salix-front/pipeline/pr-master This commit looks good
Details
gitea/salix-front/pipeline/pr-master This commit looks good
Details
This commit is contained in:
commit
c9e7411c90
|
@ -248,7 +248,7 @@ function getBadgeAttrs(row) {
|
||||||
|
|
||||||
let timeDiff = today - timeTicket;
|
let timeDiff = today - timeTicket;
|
||||||
|
|
||||||
if (timeDiff > 0) return { color: 'info', 'text-color': 'black' };
|
if (timeDiff < 0) return { color: 'warning', 'text-color': 'black' };
|
||||||
switch (row.entryTypeCode) {
|
switch (row.entryTypeCode) {
|
||||||
case 'regularization':
|
case 'regularization':
|
||||||
case 'life':
|
case 'life':
|
||||||
|
@ -273,7 +273,7 @@ function getBadgeAttrs(row) {
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (timeDiff < 0) return { color: 'warning', 'text-color': 'black' };
|
if (timeDiff > 0) return { color: 'info', 'text-color': 'black' };
|
||||||
return { color: 'transparent' };
|
return { color: 'transparent' };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,11 +44,12 @@ describe('EntryList', () => {
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
checkBadgeDate(
|
// fix on task https://redmine.verdnatura.es/issues/8638
|
||||||
|
/* checkBadgeDate(
|
||||||
'td[data-col-field="landed"] > div .bg-info',
|
'td[data-col-field="landed"] > div .bg-info',
|
||||||
(badgeDate, compareDate) => {
|
(badgeDate, compareDate) => {
|
||||||
expect(badgeDate.getTime()).to.be.lessThan(compareDate.getTime());
|
expect(badgeDate.getTime()).to.be.lessThan(compareDate.getTime());
|
||||||
},
|
},
|
||||||
);
|
); */
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue