modified the describer for measurments to change the label for auto detect to cable id and type
This commit is contained in:
parent
3a89271656
commit
40c8e01010
2 changed files with 9 additions and 0 deletions
|
|
@ -110,6 +110,10 @@ export class MeasurementDescriber {
|
|||
}
|
||||
if (componentType === quack.ComponentType.COMPONENT_TYPE_GRAIN_CABLE) {
|
||||
this.details.graph = GraphType.AREA;
|
||||
if(componentSubtype === quack.GrainCableSubtype.GRAIN_CABLE_SUBTYPE_OPI_DIAG){
|
||||
this.details.label = "Cable ID"
|
||||
this.details.unit = ""
|
||||
}
|
||||
}
|
||||
if (componentType === quack.ComponentType.COMPONENT_TYPE_VAPOUR_PRESSURE_DEFICIT) {
|
||||
this.details.path = "vpd.celciusTimes10";
|
||||
|
|
@ -194,6 +198,10 @@ export class MeasurementDescriber {
|
|||
if (componentType === quack.ComponentType.COMPONENT_TYPE_GRAIN_CABLE) {
|
||||
this.details.label = "Humidity";
|
||||
this.details.graph = GraphType.AREA;
|
||||
if(componentSubtype === quack.GrainCableSubtype.GRAIN_CABLE_SUBTYPE_OPI_DIAG){
|
||||
this.details.label = "Cable Type"
|
||||
this.details.unit = ""
|
||||
}
|
||||
// can be used for testing node splitting on a cable if you dont have a component that uses it
|
||||
// this.details.nodeDetails = {
|
||||
// colours: ["white", "black"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue