This commit is contained in:
iFargle
2023-03-22 14:54:45 +09:00
parent 6b831a5906
commit ffd4040bb4

View File

@@ -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>
"""