fixes DeviceConnection overlay message when directly exposed

This commit is contained in:
Mose Müller 2024-01-23 15:56:00 +01:00
parent c7c88178d4
commit 529d61c77d

View File

@ -42,7 +42,9 @@ export const DeviceConnectionComponent = React.memo(
<div className="deviceConnectionComponent" id={id}> <div className="deviceConnectionComponent" id={id}>
{!connectedVal && ( {!connectedVal && (
<div className="overlayContent"> <div className="overlayContent">
<div>{displayName} is currently not available!</div> <div>
{displayName != '' ? displayName : 'Device'} is currently not available!
</div>
<MethodComponent <MethodComponent
name="connect" name="connect"
parentPath={fullAccessPath} parentPath={fullAccessPath}