Files
syncthing/src/app/chart/folder-chart/folder-chart.component.ts
T

35 lines
859 B
TypeScript
Raw Normal View History

2020-03-16 12:11:27 -04:00
import { Component, OnInit } from '@angular/core';
import { SystemConfigService } from 'src/app/system-config.service';
import { Folder } from '../../folder'
import { cardElevation } from '../../style'
2020-03-16 12:11:27 -04:00
@Component({
selector: 'app-folder-chart',
templateUrl: './folder-chart.component.html',
styleUrls: ['./folder-chart.component.scss']
})
export class FolderChartComponent implements OnInit {
chartID: string = 'foldersChart';
elevation: string = cardElevation;
2020-03-16 17:58:20 -04:00
data: number[];
2020-03-16 12:11:27 -04:00
constructor(private systemConfigService: SystemConfigService) { }
2020-03-16 12:11:27 -04:00
ngOnInit(): void {
2020-03-17 09:46:32 -04:00
// Find total number of folders
this.systemConfigService.getFolders().subscribe(
data => {
2020-03-16 17:58:20 -04:00
this.data = [0, 1, 32, 40];
}
);
2020-03-17 09:46:32 -04:00
// Sequentially look up each folder to get status
// dbStatusService
2020-03-16 12:11:27 -04:00
}
2020-03-16 17:58:20 -04:00
/*
ngAfterViewInit() {
2020-03-16 12:11:27 -04:00
2020-03-16 17:58:20 -04:00
}
*/
2020-03-16 12:11:27 -04:00
}