fix: add node type to the App Info page
This commit is contained in:
parent
ee3a789682
commit
102ea176cb
1 changed files with 16 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ class AppInfoView(MasterView): # pylint: disable=abstract-method
|
||||||
return context
|
return context
|
||||||
|
|
||||||
def get_appinfo_dict(self): # pylint: disable=missing-function-docstring
|
def get_appinfo_dict(self): # pylint: disable=missing-function-docstring
|
||||||
return OrderedDict(
|
appinfo = OrderedDict(
|
||||||
[
|
[
|
||||||
(
|
(
|
||||||
"distribution",
|
"distribution",
|
||||||
|
|
@ -105,6 +105,13 @@ class AppInfoView(MasterView): # pylint: disable=abstract-method
|
||||||
"value": self.app.get_title(),
|
"value": self.app.get_title(),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
"node_type",
|
||||||
|
{
|
||||||
|
"label": "Node Type",
|
||||||
|
"value": self.app.get_node_type(),
|
||||||
|
},
|
||||||
|
),
|
||||||
(
|
(
|
||||||
"node_title",
|
"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
|
def get_grid_data( # pylint: disable=empty-docstring
|
||||||
self, columns=None, session=None
|
self, columns=None, session=None
|
||||||
):
|
):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue