3
0
Fork 0

fix: add node type to the App Info page

This commit is contained in:
Lance Edgar 2026-03-20 20:32:19 -05:00
parent ee3a789682
commit 102ea176cb

View file

@ -80,7 +80,7 @@ class AppInfoView(MasterView): # pylint: disable=abstract-method
return context
def get_appinfo_dict(self): # pylint: disable=missing-function-docstring
return OrderedDict(
appinfo = OrderedDict(
[
(
"distribution",
@ -105,6 +105,13 @@ class AppInfoView(MasterView): # pylint: disable=abstract-method
"value": self.app.get_title(),
},
),
(
"node_type",
{
"label": "Node Type",
"value": self.app.get_node_type(),
},
),
(
"node_title",
{
@ -147,6 +154,14 @@ class AppInfoView(MasterView): # pylint: disable=abstract-method
]
)
if not appinfo["node_type"]["value"]:
del appinfo["node_type"]
if appinfo["app_title"]["value"] == appinfo["node_title"]["value"]:
del appinfo["node_title"]
return appinfo
def get_grid_data( # pylint: disable=empty-docstring
self, columns=None, session=None
):