mirror of
https://github.com/iFargle/headscale-webui.git
synced 2026-03-21 03:14:44 +01:00
Fix toggle_expired logic.
This commit is contained in:
@@ -485,7 +485,7 @@ def build_preauth_key_table(user_name):
|
||||
expiration_time = str(expiration_parse.strftime('%A %m/%d/%Y, %H:%M:%S'))+" "+str(timezone)
|
||||
|
||||
# Class for the javascript function to look for to toggle the hide function
|
||||
hide_expired = "expired-row" if key_expired else ""
|
||||
hide_expired = "expired-row" if not key_usable else ""
|
||||
|
||||
key_usable = False
|
||||
if key["reusable"] and not key_expired: key_usable = True
|
||||
|
||||
Reference in New Issue
Block a user