mirror of
https://github.com/iFargle/headscale-webui.git
synced 2025-12-13 18:39:46 +01:00
test
This commit is contained in:
@@ -805,7 +805,7 @@ def render_routes():
|
||||
failover_display = failover_disabled
|
||||
for route_id in route_id_list:
|
||||
# Get the routes index:
|
||||
current_route_index = all_routes_id_list.indexOf(route_id)
|
||||
current_route_index = all_routes_id_list.index(route_id)
|
||||
if all_routes["routes"][current_route_index]["enabled"]: failover_display = failover_enabled
|
||||
|
||||
|
||||
@@ -825,7 +825,7 @@ def render_routes():
|
||||
|
||||
# Build the display:
|
||||
for route_id in route_id_list:
|
||||
idx = all_routes_id_list.indexOf(route_id)
|
||||
idx = all_routes_id_list.index(route_id)
|
||||
|
||||
machine = all_routes["routes"][idx]["machine"]["givenName"]
|
||||
machine_id = all_routes["routes"][idx]["machine"]["id"]
|
||||
|
||||
Reference in New Issue
Block a user