File the Fleet nav item under Assets and store policy JSON as TEXT
This commit is contained in:
@@ -218,7 +218,6 @@ const NAV_SECTIONS = [
|
|||||||
{ key: null, label: null },
|
{ key: null, label: null },
|
||||||
{ key: 'assets', label: 'Assets' },
|
{ key: 'assets', label: 'Assets' },
|
||||||
{ key: 'information', label: 'Information' },
|
{ key: 'information', label: 'Information' },
|
||||||
{ key: 'fleet', label: 'Fleet' },
|
|
||||||
]
|
]
|
||||||
|
|
||||||
function buildNavItems(items) {
|
function buildNavItems(items) {
|
||||||
|
|||||||
@@ -177,8 +177,11 @@ class EndpointsPlugin(BasePlugin):
|
|||||||
def get_navigation_items(self) -> List[Dict]:
|
def get_navigation_items(self) -> List[Dict]:
|
||||||
"""Sidebar entry for the fleet list view.
|
"""Sidebar entry for the fleet list view.
|
||||||
|
|
||||||
Sits just after the PCs item (position 15) because the fleet view is
|
Filed under Assets, immediately after PCs (position 15), because the
|
||||||
a telemetry lens over the same computers.
|
fleet view is a telemetry lens over the same computers rather than a
|
||||||
|
different kind of thing. It shipped declaring a section of its own,
|
||||||
|
which rendered a one-item 'Fleet' group at the bottom of the sidebar,
|
||||||
|
far from the PCs it describes.
|
||||||
"""
|
"""
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
@@ -187,7 +190,7 @@ class EndpointsPlugin(BasePlugin):
|
|||||||
'route': '/endpoints',
|
'route': '/endpoints',
|
||||||
'position': 16,
|
'position': 16,
|
||||||
'permission': 'endpoints.view',
|
'permission': 'endpoints.view',
|
||||||
'section': 'fleet',
|
'section': 'assets',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user