This commit is contained in:
parent
bb5968c2d0
commit
400403b96f
|
@ -39,7 +39,7 @@ export const PanelEditWithDrilldownsAndContextActions: React.FC = () => {
|
|||
const customActionGrouping: Action['grouping'] = [
|
||||
{
|
||||
id: 'actions',
|
||||
getDisplayName: () => 'Custom actions',
|
||||
getDisplayName: () => 'API actions',
|
||||
getIconType: () => 'cloudStormy',
|
||||
order: 20,
|
||||
},
|
||||
|
|
|
@ -201,8 +201,10 @@ export async function buildContextMenuForActions({
|
|||
|
||||
for (const panel of Object.values(panels)) {
|
||||
if (panel._level === 0) {
|
||||
// TODO: Add separator line here once it is available in EUI.
|
||||
// See https://github.com/elastic/eui/pull/4018
|
||||
panels.mainMenu.items.push({
|
||||
isSeparator: true,
|
||||
key: panel.id + '__separator',
|
||||
});
|
||||
if (panel.items.length > 3) {
|
||||
panels.mainMenu.items.push({
|
||||
name: panel.title || panel.id,
|
||||
|
|
Loading…
Reference in a new issue