start of db status service
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user