mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 00:22:36 +08:00
PluginPage: Fix finding root section for standalone pages (#56554)
This commit is contained in:
@ -2,6 +2,7 @@ import { Location as HistoryLocation } from 'history';
|
||||
|
||||
import { NavIndex, NavModelItem } from '@grafana/data';
|
||||
import { config } from '@grafana/runtime';
|
||||
import { HOME_NAV_ID } from 'app/core/reducers/navModel';
|
||||
|
||||
import { buildPluginSectionNav } from './utils';
|
||||
|
||||
@ -33,6 +34,10 @@ describe('buildPluginSectionNav', () => {
|
||||
text: 'Admin',
|
||||
id: 'admin',
|
||||
children: [],
|
||||
parentItem: {
|
||||
id: HOME_NAV_ID,
|
||||
text: 'Home',
|
||||
},
|
||||
};
|
||||
|
||||
const standalonePluginPage = {
|
||||
|
Reference in New Issue
Block a user