added runtime info to executions
This commit is contained in:
parent
5816564ee7
commit
8fa85db819
|
@ -93,8 +93,9 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
<span name="message" class="ml-1"></span>
|
<span name="message" class="ml-1"></span>
|
||||||
</p>
|
</p>
|
||||||
</summary>
|
</summary>
|
||||||
<div>
|
<div class="d-flex mb-1" style="gap:3px">
|
||||||
<span class="badge" name="infrastructure" alt="infrastructure" title="infrastructure"></span>
|
<span class="badge" name="infrastructure" alt="Infrastructure" title="Infrastructure"></span>
|
||||||
|
<span class="badge" name="runtime" alt="Runtime" title="Runtime"></span>
|
||||||
</div>
|
</div>
|
||||||
<ul>
|
<ul>
|
||||||
<li></li>
|
<li></li>
|
||||||
|
@ -455,6 +456,15 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
e.classList.add(t2)
|
e.classList.add(t2)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
target : "span[name=runtime]",
|
||||||
|
apply : (e,d)=>{
|
||||||
|
e.textContent = d.runtime + (d.replicas && d.replicas !== "1" ? ' x ' + d.replicas : '')
|
||||||
|
const t = d.infrastructuretype.match(/docker/i) ? "docker" : null
|
||||||
|
const t2 = !t && d.infrastructuretype.match(/lxd/i) ? "lxd" : t
|
||||||
|
e.classList.add(t2)
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
target : "ul",
|
target : "ul",
|
||||||
recurse : [
|
recurse : [
|
||||||
|
|
Loading…
Reference in New Issue