mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Show a notification if no saved objects when exporting. Closes #5620.
Fixes #5672
This commit is contained in:
parent
277a804e2a
commit
f5945a7d38
1 changed files with 1 additions and 0 deletions
|
@ -101,6 +101,7 @@ define(function (require) {
|
|||
};
|
||||
|
||||
function retrieveAndExportDocs(objs) {
|
||||
if (!objs.length) return notify.error('No saved objects to export.');
|
||||
es.mget({
|
||||
index: kbnIndex,
|
||||
body: {docs: objs.map(transformToMget)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue