diff --git a/docs/API.md b/docs/API.md index cd13a241..3b321f6d 100755 --- a/docs/API.md +++ b/docs/API.md @@ -5,7 +5,7 @@ PiAlert comes with a simple API. These API endpoints are static files, that are ### When are the endpoints updated -Once you enable the API (`ENABLE_API` setting), the endpoints are updated when objects in the API endpoints are changed: +The endpoints are updated when objects in the API endpoints are changed. ### Location of the endpoints diff --git a/front/css/pialert.css b/front/css/pialert.css index 45dc9dc6..f80c25e4 100755 --- a/front/css/pialert.css +++ b/front/css/pialert.css @@ -799,6 +799,8 @@ height: 50px; margin-bottom: 6px; } +/* NETWORK page */ + /* AdminLTE overrides */ #networkTree .box { @@ -822,6 +824,14 @@ height: 50px; float:left; display:inline; } + +#networkTree .portBckgIcon +{ + opacity: 0.3; + display: initial; + float: inline-start; +} + #networkTree { margin-left: 16px; @@ -839,7 +849,7 @@ height: 50px; { display: block; position: absolute; - margin-left: 156px; + margin-left: 170px; top: -3px; font-size: large; left: -15px; diff --git a/front/network.php b/front/network.php index 0eb7e451..7089acf4 100755 --- a/front/network.php +++ b/front/network.php @@ -644,9 +644,13 @@ renderNode: nodeData => { var fontSize = "font-size:"+emSize+"em;"; + (!emptyArr.includes(nodeData.data.port )) ? port = nodeData.data.port : port = ""; + + (port == "" || port == 0 ) ? portBckgIcon = `` : portBckgIcon = ``; + // Build HTML for individual nodes in the network diagram deviceIcon = (!emptyArr.includes(nodeData.data.icon )) ? "