1
0
forked from test/crm

fix: dont show 'just now' in sla status instead show 'less than a minute'

This commit is contained in:
Shariq Ansari 2023-12-26 15:49:02 +05:30
parent d30678d5de
commit 4fa94bb464

View File

@ -74,9 +74,15 @@ let slaSection = computed(() => {
if (status == 'First Response Due') {
status = timeAgo(data.value.response_by)
if (status == 'just now') {
status = 'In less than a minute'
}
tooltipText = dateFormat(data.value.response_by, dateTooltipFormat)
if (new Date(data.value.response_by) < new Date()) {
color = 'red'
if (status == 'In less than a minute') {
status = 'less than a minute ago'
}
}
}