ui: Send locked status to templates.

This commit is contained in:
tecnovert
2022-11-18 23:31:52 +02:00
parent 391f6ffe80
commit 6e5c54b447
7 changed files with 129 additions and 38 deletions

View File

@@ -150,6 +150,10 @@ class HttpHandler(BaseHTTPRequestHandler):
self.server.session_tokens['shutdown'] = shutdown_token
args_dict['shutdown_token'] = shutdown_token
encrypted, locked = swap_client.getLockedState()
args_dict['encrypted'] = encrypted
args_dict['locked'] = locked
if self.server.msg_id_counter >= 0x7FFFFFFF:
self.server.msg_id_counter = 0