renaming available to connected

This commit is contained in:
Mose Müller
2024-01-16 16:46:25 +01:00
parent fc28b83bc5
commit 04d19a853f
11 changed files with 21 additions and 21 deletions

View File

@ -22,8 +22,8 @@ export const DeviceConnectionComponent = React.memo(
isInstantUpdate,
addNotification
}: DeviceConnectionProps) => {
const { available, connect, ...updatedProps } = props;
const availableVal = available.value;
const { connected, connect, ...updatedProps } = props;
const connectedVal = connected.value;
let fullAccessPath = parentPath;
if (name) {
@ -40,7 +40,7 @@ export const DeviceConnectionComponent = React.memo(
return (
<div className="deviceConnectionComponent" id={id}>
{!availableVal && (
{!connectedVal && (
<div className="overlayContent">
<div>{displayName} is currently not available!</div>
<MethodComponent