Skip to content

Commit b24f276

Browse files
fix(front): relativeTime is not defined (#309)
## 📝 Description 9c92112 introduced a change from `relativeTime` to `timeAgo` but it was not propagated everywhere. This results in a bug in a front-end bug on Activity Monitor when a debugging session is running, hiding the debugging session which makes stopping it manually no longer possible. <img width="488" alt="Screenshot 2025-05-20 at 10 41 41" src="https://github.com/user-attachments/assets/233ea00b-8212-480c-b0c7-f4f854598736" /> ## ✅ Checklist - [ ] I have tested this change - [ ] This change requires documentation update (I can't spend several hours setting up this repository locally yet, sorry! It's a very simple front-end fix though) Co-authored-by: Veljko Maksimovic <[email protected]>
1 parent 0e43980 commit b24f276

File tree

1 file changed

+2
-2
lines changed
  • front/assets/js/activity_monitor/items

1 file changed

+2
-2
lines changed

front/assets/js/activity_monitor/items/item.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function renderDebugJob(item, state) {
215215
<div class="w-25-l">
216216
<div class="flex flex-row-reverse-l items-center">
217217
<img src="${item.user_icon_path}" class="db br-100 ba b--black-50" width="32" height="32">
218-
<div class="f5 gray ml2 ml3-m ml0-l mr3-l tr-l">${relativeTime(item.created_at)} <br> by ${item.user_name}</div>
218+
<div class="f5 gray ml2 ml3-m ml0-l mr3-l tr-l">${timeAgo(item.created_at)} <br> by ${item.user_name}</div>
219219
</div>
220220
</div>
221221
</div>
@@ -247,7 +247,7 @@ function renderDebugProject(item, state) {
247247
<div class="w-25-l">
248248
<div class="flex flex-row-reverse-l items-center">
249249
<img src="${item.user_icon_path}" class="db br-100 ba b--black-50" width="32" height="32">
250-
<div class="f5 gray ml2 ml3-m ml0-l mr3-l tr-l">${relativeTime(item.created_at)} <br> by ${escapeHtml(item.user_name)}</div>
250+
<div class="f5 gray ml2 ml3-m ml0-l mr3-l tr-l">${timeAgo(item.created_at)} <br> by ${escapeHtml(item.user_name)}</div>
251251
</div>
252252
</div>
253253
</div>

0 commit comments

Comments
 (0)