start of db status service

This commit is contained in:
Jesse Lucas
2020-03-29 16:51:12 -04:00
parent 08da982de5
commit 8bdf409d07
6 changed files with 54 additions and 8 deletions
@@ -15,7 +15,7 @@ export class DeviceChartComponent implements OnInit {
constructor(private systemConfigService: SystemConfigService) { }
ngOnInit(): void {
this.systemConfigService.getFolders().subscribe(
this.systemConfigService.getDevices().subscribe(
data => {
this.data = [0, 230, 32, 40];
}
@@ -14,7 +14,6 @@ export class DonutChartComponent {
val.forEach((v) => {
this.addData(v)
});
console.log("set the data?", val)
}
};
@@ -34,7 +33,6 @@ export class DonutChartComponent {
ngAfterViewInit(): void {
console.log("is the data set?", this.data, this.elementID);
this.canvas = document.getElementById(this.elementID);
this.ctx = this.canvas.getContext('2d');
this.chart = new Chart(this.ctx, {
@@ -16,11 +16,15 @@ export class FolderChartComponent implements OnInit {
constructor(private systemConfigService: SystemConfigService) { }
ngOnInit(): void {
// Find total number of folders
this.systemConfigService.getFolders().subscribe(
data => {
this.data = [0, 1, 32, 40];
}
);
// Sequentially look up each folder to get status
// dbStatusService
}
/*
ngAfterViewInit() {