Add additional columns, styling and data to lists

This commit is contained in:
Jesse Lucas
2020-03-31 20:40:36 -04:00
parent 865f1f2ea6
commit 06eacb87d8
15 changed files with 51 additions and 102 deletions
+3 -1
View File
@@ -35,7 +35,7 @@ export class DeviceService {
if (this.sysConns.connections[device.deviceID] === undefined) {
console.log(this.sysConns.connections)
console.log("connections undefined", device.deviceID);
device.state = Device.StateType.Unknown;
device.stateType = Device.StateType.Unknown;
} else {
// Set connected
device.connected = this.sysConns.connections[device.deviceID].connected;
@@ -49,6 +49,8 @@ export class DeviceService {
this.dbCompletionService.getDeviceCompletion(device.deviceID).subscribe(
c => {
device.completion = c.completion;
device.stateType = Device.getStateType(device);
device.state = Device.stateTypeToString(device.stateType);
observer.next(device);
// recursively get the status of the next folder
+2
View File
@@ -26,6 +26,8 @@ export class FolderService {
this.dbStatusService.getFolderStatus(folder.id).subscribe(
status => {
folder.status = status;
folder.stateType = Folder.getStateType(folder);
folder.state = Folder.stateTypeToString(folder.stateType);
observer.next(folder);
// recursively get the status of the next folder