added rendering of created/started info
This commit is contained in:
parent
14eec1f04b
commit
be655d6e49
|
@ -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)=>{
|
||||
|
|
Loading…
Reference in New Issue