Expanding modal width on controller dashboard. Including hostname in controller dashboard title.

This commit is contained in:
Roland 2025-12-24 16:43:37 -07:00
parent 5fb49ad001
commit b9eb4e5104
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
4 changed files with 12 additions and 5 deletions

View file

@ -45,6 +45,7 @@ async def list_services() -> Union[list[ServiceStatusResponse], ServicesListErro
if is_docker_mode():
if can_manage_containers():
statuses = get_all_containers_status()
statuses = sorted(statuses, key=lambda s: s["name"])
return [ServiceStatusResponse(**s) for s in statuses if "error" not in s]
else:
return ServicesListErrorResponse(
@ -53,6 +54,7 @@ async def list_services() -> Union[list[ServiceStatusResponse], ServicesListErro
)
else:
statuses = get_all_services_status()
statuses = sorted(statuses, key=lambda s: s["name"])
return [ServiceStatusResponse(**s) for s in statuses]