Skip to content

Commit

Permalink
Condense group adding context menu in visualization editor
Browse files Browse the repository at this point in the history
Signed-off-by: Miki <[email protected]>
  • Loading branch information
AMoo-Miki committed Jun 14, 2024
1 parent 82a0f2a commit 3525031
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/vis_default_editor/public/components/agg_add.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function DefaultEditorAggAdd({
repositionOnScroll={true}
closePopover={() => setIsPopoverOpen(false)}
>
<EuiPopoverTitle>
<EuiPopoverTitle paddingSize="s">
{(groupName !== AggGroupNames.Buckets || !stats.count) && (
<FormattedMessage
id="visDefaultEditor.aggAdd.addGroupButtonLabel"
Expand All @@ -116,6 +116,7 @@ function DefaultEditorAggAdd({
)}
</EuiPopoverTitle>
<EuiContextMenuPanel
size="s"
items={schemas.map((schema) => (
<EuiContextMenuItem
key={`${schema.name}_${schema.title}`}
Expand Down

0 comments on commit 3525031

Please sign in to comment.