mirror of
https://github.com/iFargle/headscale-webui.git
synced 2026-03-24 22:14:45 +01:00
test
This commit is contained in:
@@ -855,18 +855,18 @@ function toggle_route(route_id, current_state, page) {
|
||||
|
||||
function get_routes() {
|
||||
console.log("Getting info for all routes")
|
||||
var all_routes = ""
|
||||
var data
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
async: false,
|
||||
type:"POST",
|
||||
url: "api/get_routes",
|
||||
contentType: "application/json",
|
||||
success: function(response) {
|
||||
console.log("Got all routes.")
|
||||
all_routes = JSON.stringify(response)
|
||||
data = response
|
||||
}
|
||||
})
|
||||
return all_routes
|
||||
return data
|
||||
}
|
||||
|
||||
function toggle_failover_route_routespage(routeid, current_state, prefix, route_id_list) {
|
||||
@@ -913,7 +913,7 @@ function toggle_failover_route_routespage(routeid, current_state, prefix, route_
|
||||
var enabled_status = "False"
|
||||
|
||||
// Debug.
|
||||
console.log("in toggle_failover_state_routespage: Routes: "+routes)
|
||||
console.log("in toggle_failover_state_routespage: Routes: "+JSON.stringify(routes))
|
||||
|
||||
// Get the primary and enabled displays for the prefix:
|
||||
for (let i=0; i < route_id_list.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user