From eeaf424d8b89a3e05fbe50b8b5396da608ff14d4 Mon Sep 17 00:00:00 2001
From: dcore94
Date: Wed, 29 Mar 2023 16:19:35 +0200
Subject: [PATCH] added infras info to executions
---
ccp/js/executionhistorycontroller.js | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/ccp/js/executionhistorycontroller.js b/ccp/js/executionhistorycontroller.js
index 0875063..22a7ae1 100644
--- a/ccp/js/executionhistorycontroller.js
+++ b/ccp/js/executionhistorycontroller.js
@@ -45,6 +45,12 @@ class CCPExecutionHistory extends HTMLElement {
.ccp-execution-list {
min-height: 3rem;
}
+ .ccp-execution-list .lxd{
+ background-color: #dd4814;
+ }
+ .ccp-execution-list .docker{
+ background-color: #2496ed;
+ }
@@ -87,6 +93,9 @@ class CCPExecutionHistory extends HTMLElement {
+
+
+
@@ -437,6 +446,14 @@ class CCPExecutionHistory extends HTMLElement {
}
}
},
+ {
+ target : "span[name=infrastructure]",
+ apply : (e,d)=>{
+ e.textContent = d.infrastructure
+ const t = infra.type.match(/docker/i) ? "docker" : null
+ const t2 = !t && infra.type.match(/lxd/i) ? "lxd" : t
+ e.classList.add(t2)
+ },
{
target : "ul",
recurse : [