mirror of
https://github.com/iFargle/headscale-webui.git
synced 2026-03-18 16:49:26 +01:00
test
This commit is contained in:
@@ -726,8 +726,8 @@ def render_routes():
|
||||
is_failover = False
|
||||
is_exit = False
|
||||
|
||||
enabled = "<a href='#'><i id='"+route["id"]+"' onclick='toggle_route_routes_page("+route["id"]+", \"True\")' class='material-icons green-text text-lighten-2 tooltipped' data-tooltip='Click to disable'>fiber_manual_record</i></a>"
|
||||
disabled = "<a href='#'><i id='"+route["id"]+"' onclick='toggle_route_routes_page("+route["id"]+", \"False\")' class='material-icons red-text text-lighten-2 tooltipped' data-tooltip='Click to enable' >fiber_manual_record</i></a>"
|
||||
enabled = "<a href='#'><i id='"+route["id"]+"' onclick='toggle_route_routes_page("+route["id"]+", \'True\')' class='material-icons green-text text-lighten-2 tooltipped' data-tooltip='Click to disable'>fiber_manual_record</i></a>"
|
||||
disabled = "<a href='#'><i id='"+route["id"]+"' onclick='toggle_route_routes_page("+route["id"]+", \'False\')' class='material-icons red-text text-lighten-2 tooltipped' data-tooltip='Click to enable' >fiber_manual_record</i></a>"
|
||||
|
||||
# Set the displays:
|
||||
enabled_display = disabled
|
||||
|
||||
@@ -848,8 +848,8 @@ function toggle_route_routes_page(route_id, current_state) {
|
||||
success: function(response) {
|
||||
// Response is a JSON object containing the Headscale API response of /v1/api/machines/<id>/route
|
||||
var element = document.getElementById(route_id);
|
||||
var disabledClass = "material-icons green-text text-lighten-2 tooltipped";
|
||||
var enabledClass = "material-icons red-text text-lighten-2 tooltipped";
|
||||
var disabledClass = "material-icons red-text text-lighten-2 tooltipped";
|
||||
var enabledClass = "material-icons green-text text-lighten-2 tooltipped";
|
||||
var disabledTooltip = "Click to enable"
|
||||
var enabledTooltip = "Click to disable"
|
||||
var disableState = "False"
|
||||
|
||||
Reference in New Issue
Block a user