UNPKG

kibana-riya

Version:

Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic

22 lines (17 loc) 774 B
import _ from 'lodash'; import Scanner from 'ui/utils/scanner'; import 'plugins/kibana/dashboard/services/_saved_dashboard'; import uiModules from 'ui/modules'; const module = uiModules.get('app/dashboard'); import { SavedObjectLoader } from 'ui/courier/saved_object/saved_object_loader'; // bring in the factory // Register this service with the saved object registry so it can be // edited by the object editor. require('plugins/kibana/management/saved_object_registry').register({ service: 'savedDashboards', title: 'dashboards' }); // This is the only thing that gets injected into controllers module.service('savedDashboards', function (SavedDashboard, kbnIndex, esAdmin, kbnUrl) { return new SavedObjectLoader(SavedDashboard, kbnIndex, esAdmin, kbnUrl); });