fix: dont show 'just now' in sla status instead show 'less than a minute'
This commit is contained in:
parent
d30678d5de
commit
4fa94bb464
@ -74,9 +74,15 @@ let slaSection = computed(() => {
|
|||||||
|
|
||||||
if (status == 'First Response Due') {
|
if (status == 'First Response Due') {
|
||||||
status = timeAgo(data.value.response_by)
|
status = timeAgo(data.value.response_by)
|
||||||
|
if (status == 'just now') {
|
||||||
|
status = 'In less than a minute'
|
||||||
|
}
|
||||||
tooltipText = dateFormat(data.value.response_by, dateTooltipFormat)
|
tooltipText = dateFormat(data.value.response_by, dateTooltipFormat)
|
||||||
if (new Date(data.value.response_by) < new Date()) {
|
if (new Date(data.value.response_by) < new Date()) {
|
||||||
color = 'red'
|
color = 'red'
|
||||||
|
if (status == 'In less than a minute') {
|
||||||
|
status = 'less than a minute ago'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user