From 4fa94bb464ca3eccd4b136f682b490eef8f279c3 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Tue, 26 Dec 2023 15:49:02 +0530 Subject: [PATCH] fix: dont show 'just now' in sla status instead show 'less than a minute' --- frontend/src/components/SLASection.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/components/SLASection.vue b/frontend/src/components/SLASection.vue index fabddc7d..dc3f1f12 100644 --- a/frontend/src/components/SLASection.vue +++ b/frontend/src/components/SLASection.vue @@ -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' + } } }