Show a notification if no saved objects when exporting. Closes #5620.

Fixes #5672
This commit is contained in:
Jonathan Budzenski 2015-12-14 12:05:50 -06:00 committed by Khalah Jones
parent 277a804e2a
commit f5945a7d38

View file

@ -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)}