mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
feat: 🎸 add separator for different context menu groups (#80498)
This commit is contained in:
parent
fc5ad4d859
commit
9b540f0bc7
2 changed files with 5 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue