Sfoglia il codice sorgente

Re-added graph disappearing if unselected sensors

A-Konig 1 mese fa
parent
commit
dad1059816
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/app/unit/components/unit.component.ts

+ 2 - 2
src/app/unit/components/unit.component.ts

@@ -136,8 +136,8 @@ export class UnitComponent implements OnInit, OnDestroy {
     const sensorGroupElement = '#vega_container_' + groupId;
 
     // if the checkmark is checked then the graph will be displayed
-    // this.showVega[groupId] = false;
-    // if (event.checked.includes(sensorId.toString()))
+    this.showVega[groupId] = false;
+    if (event.checked.includes(sensorId.toString()))
       this.showVega[groupId] = true;
 
     const box = document.getElementById('vega_container_' + groupId);