Skip to content

Commit

Permalink
Migrate saved_object_save_as_checkbox directive to timelion
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed Jan 28, 2020
1 parent fc10fb6 commit 82e8590
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/legacy/core_plugins/timelion/public/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import 'ui/directives/input_focus';
import './directives/saved_object_finder';
import 'ui/directives/listen';
import 'ui/kbn_top_nav';
import 'ui/saved_objects/ui/saved_object_save_as_checkbox';
import './directives/saved_object_save_as_checkbox';
import '../../data/public/legacy';
import './services/saved_sheet_register';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { uiModules } from '../../modules';
import { uiModules } from 'ui/modules';
import saveObjectSaveAsCheckboxTemplate from './saved_object_save_as_checkbox.html';

uiModules.get('kibana').directive('savedObjectSaveAsCheckBox', function() {
Expand Down
11 changes: 0 additions & 11 deletions src/legacy/ui/public/saved_objects/saved_object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
* This class seems to interface with ES primarily through the es Angular
* service and the saved object api.
*/
import { npStart } from 'ui/new_platform';
import { SavedObject, SavedObjectConfig, SavedObjectKibanaServices } from './types';
import { buildSavedObject } from './helpers/build_saved_object';

Expand All @@ -51,13 +50,3 @@ export function createSavedObjectClass(services: SavedObjectKibanaServices) {

return SavedObjectClass as new (config: SavedObjectConfig) => SavedObject;
}
// the old angular way, should be removed once no longer used
export function SavedObjectProvider() {
const services = {
savedObjectsClient: npStart.core.savedObjects.client,
indexPatterns: npStart.plugins.data.indexPatterns,
chrome: npStart.core.chrome,
overlays: npStart.core.overlays,
};
return createSavedObjectClass(services);
}

0 comments on commit 82e8590

Please sign in to comment.