Skip to content
Snippets Groups Projects
Commit 7a94b193 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Fix wrong job additions

parent 0cd4be05
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ class JobList extends List { ...@@ -25,7 +25,7 @@ class JobList extends List {
switch(operation.op) { switch(operation.op) {
case "add": case "add":
console.log(pathArray); console.log(pathArray);
if (pathArray[1].includes("results")) {break;} if (pathArray.includes("results")) {break;}
this.addJob(operation.value); this.addJob(operation.value);
this.update(); this.update();
List.updatePagination(this); List.updatePagination(this);
...@@ -80,12 +80,8 @@ class JobList extends List { ...@@ -80,12 +80,8 @@ class JobList extends List {
serviceIcon = JobList.SERVICE_ICONS[job.service] serviceIcon = JobList.SERVICE_ICONS[job.service]
|| JobList.SERVICE_ICONS['default']; || JobList.SERVICE_ICONS['default'];
jobServiceElement = document.createElement("i"); jobServiceElement = document.createElement("i");
jobServiceElement.classList.add( jobServiceElement.classList.add("circle", "material-icons", "service-icon",
"circle", serviceColor);
"material-icons",
"service-icon",
serviceColor
);
jobServiceElement.innerText = serviceIcon; jobServiceElement.innerText = serviceIcon;
statusColor = JobList.STATUS_COLORS[job.status] statusColor = JobList.STATUS_COLORS[job.status]
|| JobList.STATUS_COLORS['default']; || JobList.STATUS_COLORS['default'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment