Skip to content

Commit

Permalink
fix(ui): show nlwr route when lwr is unknown in overview (#3584)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando authored Feb 6, 2024
1 parent beaa1a2 commit a1f8cc2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/components/custom/ZwaveGraph.vue
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,14 @@ export default {
}
}
},
parseRouteStats(edges, controllerId, node, route, routeKind) {
parseRouteStats(
edges,
controllerId,
node,
route,
routeKind,
forceShow = false,
) {
if (!route) {
if (routeKind !== RouteKind.NLWR) {
// unknown route
Expand All @@ -957,7 +964,8 @@ export default {
const isReturn = routeKind >= 20
// tells if this route should be shown in overview
const showInOverview = routeKind !== RouteKind.NLWR && !isReturn
const showInOverview =
forceShow || (routeKind !== RouteKind.NLWR && !isReturn)
const { repeaters, repeaterRSSI, rssi, routeFailedBetween } = route
Expand Down Expand Up @@ -1196,6 +1204,7 @@ export default {
entity,
node.statistics?.nlwr,
RouteKind.NLWR,
!node.statistics?.lwr,
)
if (node.customSUCReturnRoutes) {
Expand Down

0 comments on commit a1f8cc2

Please sign in to comment.