mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Discover] Improve document selection menu
- Change position of "Copy documents to clipboard (JSON)" and "Clear selection"
This commit is contained in:
parent
6c879cc7c5
commit
af4b8e6626
1 changed files with 12 additions and 13 deletions
|
@ -96,19 +96,6 @@ export function DiscoverGridDocumentToolbarBtn({
|
|||
/>
|
||||
</EuiContextMenuItem>
|
||||
),
|
||||
|
||||
<EuiContextMenuItem
|
||||
data-test-subj="dscGridClearSelectedDocuments"
|
||||
key="clearSelection"
|
||||
icon="cross"
|
||||
onClick={() => {
|
||||
setIsSelectionPopoverOpen(false);
|
||||
setSelectedDocs([]);
|
||||
setIsFilterActive(false);
|
||||
}}
|
||||
>
|
||||
<FormattedMessage id="discover.clearSelection" defaultMessage="Clear selection" />
|
||||
</EuiContextMenuItem>,
|
||||
<EuiCopy
|
||||
key="copyJsonWrapper"
|
||||
data-test-subj="dscGridCopySelectedDocumentsJSON"
|
||||
|
@ -125,6 +112,18 @@ export function DiscoverGridDocumentToolbarBtn({
|
|||
</EuiContextMenuItem>
|
||||
)}
|
||||
</EuiCopy>,
|
||||
<EuiContextMenuItem
|
||||
data-test-subj="dscGridClearSelectedDocuments"
|
||||
key="clearSelection"
|
||||
icon="cross"
|
||||
onClick={() => {
|
||||
setIsSelectionPopoverOpen(false);
|
||||
setSelectedDocs([]);
|
||||
setIsFilterActive(false);
|
||||
}}
|
||||
>
|
||||
<FormattedMessage id="discover.clearSelection" defaultMessage="Clear selection" />
|
||||
</EuiContextMenuItem>,
|
||||
];
|
||||
}, [
|
||||
isFilterActive,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue