mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-03 20:02:47 +00:00 
			
		
		
		
	Fix wrong job additions
This commit is contained in:
		@@ -25,7 +25,7 @@ class JobList extends List {
 | 
			
		||||
      switch(operation.op) {
 | 
			
		||||
        case "add":
 | 
			
		||||
          console.log(pathArray);
 | 
			
		||||
          if (pathArray[1].includes("results")) {break;}
 | 
			
		||||
          if (pathArray.includes("results")) {break;}
 | 
			
		||||
          this.addJob(operation.value);
 | 
			
		||||
          this.update();
 | 
			
		||||
          List.updatePagination(this);
 | 
			
		||||
@@ -80,12 +80,8 @@ class JobList extends List {
 | 
			
		||||
    serviceIcon = JobList.SERVICE_ICONS[job.service]
 | 
			
		||||
                  || JobList.SERVICE_ICONS['default'];
 | 
			
		||||
    jobServiceElement = document.createElement("i");
 | 
			
		||||
    jobServiceElement.classList.add(
 | 
			
		||||
      "circle",
 | 
			
		||||
      "material-icons",
 | 
			
		||||
      "service-icon",
 | 
			
		||||
      serviceColor
 | 
			
		||||
    );
 | 
			
		||||
    jobServiceElement.classList.add("circle", "material-icons", "service-icon",
 | 
			
		||||
                                    serviceColor);
 | 
			
		||||
    jobServiceElement.innerText = serviceIcon;
 | 
			
		||||
    statusColor = JobList.STATUS_COLORS[job.status]
 | 
			
		||||
                  || JobList.STATUS_COLORS['default'];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user