diff --git a/src/NRPlusGatewayTile.tsx b/src/NRPlusGatewayTile.tsx index a73eca43..85de8e70 100644 --- a/src/NRPlusGatewayTile.tsx +++ b/src/NRPlusGatewayTile.tsx @@ -15,6 +15,7 @@ import { Lock, RouterIcon, Thermometer, + UnlockIcon, UploadCloud, X, } from 'lucide-preact' @@ -41,6 +42,7 @@ export const NRPlusGatewayTile = ({ gateway }: { gateway: NRPlusGateway }) => { .sort(sortLocations) .filter(removeOldLocation) const deviceLocation = rankedLocations[0] + const hasCode = deviceCode.length > 0 return ( <> @@ -57,7 +59,11 @@ export const NRPlusGatewayTile = ({ gateway }: { gateway: NRPlusGateway }) => { {lastUpdateTime !== undefined && ( @@ -81,37 +87,48 @@ export const NRPlusGatewayTile = ({ gateway }: { gateway: NRPlusGateway }) => {
- - setDeviceCode((e.target as HTMLInputElement).value) - } - /> - - +
+ {/* Hack to disable auto-complete in Chrome */} + + + setDeviceCode((e.target as HTMLInputElement).value) + } + /> + + +
)} {Object.entries(gateway.state.nodes).map(([id, node]) => ( - 0} - /> + ))}