From be655d6e49df5af9357161e28dbdccb988d88ae5 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Wed, 5 Apr 2023 12:50:27 +0200 Subject: [PATCH] added rendering of created/started info --- ccp/js/executionhistorycontroller.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/ccp/js/executionhistorycontroller.js b/ccp/js/executionhistorycontroller.js index c22b695..3d60174 100644 --- a/ccp/js/executionhistorycontroller.js +++ b/ccp/js/executionhistorycontroller.js @@ -88,6 +88,10 @@ class CCPExecutionHistory extends HTMLElement { +

+ . + +

: @@ -433,6 +437,24 @@ class CCPExecutionHistory extends HTMLElement { } } }, + { + target : "span[name=created]", + apply : (e,d)=>{ + if(d.created){ + const dt = new Date(d.created) + e.textContent = `Accepted ${dt.toLocaleDateString()} @ ${dt.toLocaleTimeString()}` + } + } + }, + { + target : "span[name=started]", + apply : (e,d)=>{ + if(d.started){ + const dt = new Date(d.started) + e.textContent = `Started ${dt.toLocaleDateString()} @ ${dt.toLocaleTimeString()}` + } + } + }, { target : "span[name=updated]", apply : (e,d)=>{