From f57d2222071ec7e47ff781d0118dd495bbcf10d2 Mon Sep 17 00:00:00 2001 From: Stratoula Kalafateli Date: Thu, 28 Jan 2021 17:59:32 +0200 Subject: [PATCH] Should not remove the uiSettings getter and setter --- src/plugins/visualize/public/plugin.ts | 4 +++- src/plugins/visualize/public/services.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/plugins/visualize/public/plugin.ts b/src/plugins/visualize/public/plugin.ts index 42058081bcfff..b071eafa1dae9 100644 --- a/src/plugins/visualize/public/plugin.ts +++ b/src/plugins/visualize/public/plugin.ts @@ -39,7 +39,7 @@ import { SavedObjectsStart } from '../../saved_objects/public'; import { EmbeddableStart } from '../../embeddable/public'; import { DashboardStart } from '../../dashboard/public'; import type { SavedObjectTaggingOssPluginStart } from '../../saved_objects_tagging_oss/public'; -import { setVisEditorsRegistry } from './services'; +import { setVisEditorsRegistry, setUISettings } from './services'; import { createVisEditorsRegistry, VisEditorsRegistry } from './vis_editors_registry'; export interface VisualizePluginStartDependencies { @@ -117,6 +117,8 @@ export class VisualizePlugin stopUrlTracker(); }; + setUISettings(core.uiSettings); + core.application.register({ id: 'visualize', title: 'Visualize', diff --git a/src/plugins/visualize/public/services.ts b/src/plugins/visualize/public/services.ts index 7c4827dac454a..ced651047814b 100644 --- a/src/plugins/visualize/public/services.ts +++ b/src/plugins/visualize/public/services.ts @@ -5,10 +5,12 @@ * compliance with, at your election, the Elastic License or the Server Side * Public License, v 1. */ - +import { IUiSettingsClient } from '../../../core/public'; import { createGetterSetter } from '../../../plugins/kibana_utils/public'; import { VisEditorsRegistry } from './vis_editors_registry'; +export const [getUISettings, setUISettings] = createGetterSetter('UISettings'); + export const [ getVisEditorsRegistry, setVisEditorsRegistry,