mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 06:56:18 -05:00
Expanding modal width on controller dashboard. Including hostname in controller dashboard title.
This commit is contained in:
parent
5fb49ad001
commit
b9eb4e5104
4 changed files with 12 additions and 5 deletions
|
|
@ -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]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue