fix: correct badge color logic in EntryList based on time difference #1646

Merged
pablone merged 3 commits from fixColorOnEntryList into master 2025-03-27 11:46:55 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 5966fe5390 - Show all commits

View File

@ -248,7 +248,7 @@ function getBadgeAttrs(row) {
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) {
case 'regularization':
case 'life':
@ -273,7 +273,7 @@ function getBadgeAttrs(row) {
default:
break;
}
if (timeDiff < 0) return { color: 'warning', 'text-color': 'black' };
if (timeDiff > 0) return { color: 'info', 'text-color': 'black' };
return { color: 'transparent' };
}