adding analog pressure to have the cable id show up for analog cables

This commit is contained in:
csawatzky 2026-06-24 12:38:29 -06:00
parent f73eb0fcbd
commit 4ea0d53c94

View file

@ -507,11 +507,12 @@ export default function ComponentSettings(props: Props) {
);
};
const isCableComponent = () => {
const hasCableID = () => {
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_PRESSURE_CABLE ||
formComponent.settings.type === quack.ComponentType.COMPONENT_TYPE_ANALOG_PRESSURE ||
(formComponent.settings.type === quack.ComponentType.COMPONENT_TYPE_CAPACITOR_CABLE &&
formComponent.subType() ===
quack.CapacitorCableSubtype.CAPACITOR_CABLE_SUBTYPE_FROG))
@ -577,7 +578,8 @@ export default function ComponentSettings(props: Props) {
)}
</TextField>
{supportsExpansion() && setExpLine()}
{(isCableComponent() && !supportsExpansion())&& setComponentAddrType()}
{(hasCableID() && !supportsExpansion())&& setComponentAddrType()}
</React.Fragment>
) : activeStep === 1 ? (
<ComponentForm