mirror of
https://github.com/iFargle/headscale-webui.git
synced 2026-03-19 11:55:28 +01:00
test
This commit is contained in:
@@ -276,7 +276,7 @@ def thread_machine_content(machine, machine_content, idx, all_routes):
|
||||
# Find all exits and put their ID's into the exit_routes array
|
||||
exit_routes = []
|
||||
exit_enabled_color = "red"
|
||||
exit_tooltip = "disable"
|
||||
exit_tooltip = "enable"
|
||||
exit_enabled = False
|
||||
exit_id = machine["id"]+"-exit"
|
||||
|
||||
@@ -297,7 +297,7 @@ def thread_machine_content(machine, machine_content, idx, all_routes):
|
||||
class='waves-effect waves-light btn-small """+exit_enabled_color+""" lighten-2 tooltipped'
|
||||
data-position='top' data-tooltip='Click to """+exit_tooltip+"""'
|
||||
id='"""+exit_id+"""'
|
||||
onclick="toggle_exit("""+exit_routes[0]+""", """+exit_routes[1]+""", """+exit_id+""", '"""+str(route['enabled'])+"""')"> Exit Route
|
||||
onclick="toggle_exit("""+exit_routes[0]+""", """+exit_routes[1]+""", """+exit_id+""", '"""+str(exit_enabled)+"""')"> Exit Route
|
||||
</p>
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user