mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-04 00:06:18 +00:00
Added configuration descriptions
This commit is contained in:
@@ -1106,8 +1106,12 @@ class WireguardConfiguration:
|
||||
except Exception as e:
|
||||
return False
|
||||
|
||||
def updateConfigurationInfo(self, key: str, value):
|
||||
def updateConfigurationInfo(self, key: str, value) -> tuple[bool, str] | tuple[bool, None]:
|
||||
if key == "Description":
|
||||
self.configurationInfo.Description = value
|
||||
else:
|
||||
return False, "Key does not exist"
|
||||
|
||||
self.storeConfigurationInfo()
|
||||
return True, None
|
||||
|
Reference in New Issue
Block a user