Merge branch 'master' of gitlab.com:brandx/bxt-app
This commit is contained in:
commit
199511e829
2 changed files with 5 additions and 3 deletions
|
|
@ -518,7 +518,6 @@ export default function ComponentSettings(props: Props) {
|
||||||
formComponent.settings.type ===
|
formComponent.settings.type ===
|
||||||
quack.ComponentType.COMPONENT_TYPE_DRAGER_GAS_DONGLE ||
|
quack.ComponentType.COMPONENT_TYPE_DRAGER_GAS_DONGLE ||
|
||||||
formComponent.settings.type === quack.ComponentType.COMPONENT_TYPE_PRESSURE_CABLE ||
|
formComponent.settings.type === quack.ComponentType.COMPONENT_TYPE_PRESSURE_CABLE ||
|
||||||
formComponent.settings.type === quack.ComponentType.COMPONENT_TYPE_ANALOG_PRESSURE ||
|
|
||||||
(formComponent.settings.type === quack.ComponentType.COMPONENT_TYPE_CAPACITOR_CABLE &&
|
(formComponent.settings.type === quack.ComponentType.COMPONENT_TYPE_CAPACITOR_CABLE &&
|
||||||
formComponent.subType() ===
|
formComponent.subType() ===
|
||||||
quack.CapacitorCableSubtype.CAPACITOR_CABLE_SUBTYPE_FROG))
|
quack.CapacitorCableSubtype.CAPACITOR_CABLE_SUBTYPE_FROG))
|
||||||
|
|
@ -526,7 +525,9 @@ export default function ComponentSettings(props: Props) {
|
||||||
|
|
||||||
const supportsExpansion = () => {
|
const supportsExpansion = () => {
|
||||||
return ((formComponent.settings.type === quack.ComponentType.COMPONENT_TYPE_GRAIN_CABLE ||
|
return ((formComponent.settings.type === quack.ComponentType.COMPONENT_TYPE_GRAIN_CABLE ||
|
||||||
formComponent.settings.type === quack.ComponentType.COMPONENT_TYPE_DRAGER_GAS_DONGLE) &&
|
formComponent.settings.type === quack.ComponentType.COMPONENT_TYPE_DRAGER_GAS_DONGLE ||
|
||||||
|
formComponent.settings.type === quack.ComponentType.COMPONENT_TYPE_ANALOG_PRESSURE
|
||||||
|
) &&
|
||||||
formComponent.settings.addressType === quack.AddressType.ADDRESS_TYPE_I2C)
|
formComponent.settings.addressType === quack.AddressType.ADDRESS_TYPE_I2C)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -417,7 +417,8 @@ export default function ComponentProvider(props: PropsWithChildren<Props>) {
|
||||||
"&end=" +
|
"&end=" +
|
||||||
end +
|
end +
|
||||||
(keys ? "&keys=" + keys : "&keys=" + [deviceId.toString()]) +
|
(keys ? "&keys=" + keys : "&keys=" + [deviceId.toString()]) +
|
||||||
(types ? "&types=" + types : "&types=" + ["device"])
|
(types ? "&types=" + types : "&types=" + ["device"]) +
|
||||||
|
(as ? "&as=" + as : "")
|
||||||
)
|
)
|
||||||
return new Promise<AxiosResponse<pond.ListComponentHistoryBetweenResponse>>((resolve,reject) => {
|
return new Promise<AxiosResponse<pond.ListComponentHistoryBetweenResponse>>((resolve,reject) => {
|
||||||
get<pond.ListComponentHistoryBetweenResponse>(url).then(resp => {
|
get<pond.ListComponentHistoryBetweenResponse>(url).then(resp => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue