with changing unit preferences and such to use the user object and not local storage, the decriber needed to be updated as well and i missed that part, so now describeMeasurement takes in an optional user and uses its settings for the unit and such and when not passed in will use the defaults
This commit is contained in:
parent
9d41499c27
commit
52c8a02af3
18 changed files with 117 additions and 56 deletions
|
|
@ -694,11 +694,12 @@ export function describeMeasurement(
|
|||
componentType: quack.ComponentType | null | undefined = quack.ComponentType
|
||||
.COMPONENT_TYPE_INVALID,
|
||||
componentSubtype: number = 0,
|
||||
product?: pond.DeviceProduct
|
||||
product?: pond.DeviceProduct,
|
||||
user?: User
|
||||
): MeasurementDescriber {
|
||||
measurementType = measurementType
|
||||
? measurementType
|
||||
: quack.MeasurementType.MEASUREMENT_TYPE_INVALID;
|
||||
componentType = componentType ? componentType : quack.ComponentType.COMPONENT_TYPE_INVALID;
|
||||
return new MeasurementDescriber(measurementType, componentType, componentSubtype, product);
|
||||
return new MeasurementDescriber(measurementType, componentType, componentSubtype, product, user);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue