added rendering of created/started info

This commit is contained in:
dcore94 2023-04-05 12:50:27 +02:00
parent 14eec1f04b
commit be655d6e49
1 changed files with 22 additions and 0 deletions

View File

@ -88,6 +88,10 @@ class CCPExecutionHistory extends HTMLElement {
</svg>
</button>
</div>
<p name="createstart" class="font-weight-light font-italic" style="margin-top:revert">
<span name="created"></span>.
<span name="started" class="ml-1"></span>
</p>
<p name="message" class="font-weight-light font-italic" style="margin-top:revert">
<span name="updated"></span>:
<span name="message" class="ml-1"></span>
@ -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)=>{