From 00461b52ecc0f85d09cd348a3afcb7179d486736 Mon Sep 17 00:00:00 2001 From: Hailong Cui Date: Wed, 20 Mar 2024 13:39:47 +0800 Subject: [PATCH] add workspaceStart Signed-off-by: Hailong Cui --- .../public/management_section/saved_objects_table_page.tsx | 1 + src/plugins/workspace/public/plugin.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/saved_objects_management/public/management_section/saved_objects_table_page.tsx b/src/plugins/saved_objects_management/public/management_section/saved_objects_table_page.tsx index b3ef976d8283..42889d6d8095 100644 --- a/src/plugins/saved_objects_management/public/management_section/saved_objects_table_page.tsx +++ b/src/plugins/saved_objects_management/public/management_section/saved_objects_table_page.tsx @@ -92,6 +92,7 @@ const SavedObjectsTablePage = ({ overlays={coreStart.overlays} notifications={coreStart.notifications} applications={coreStart.application} + workspaces={coreStart.workspaces} perPageConfig={itemsPerPage} goInspectObject={(savedObject) => { const { editUrl } = savedObject.meta; diff --git a/src/plugins/workspace/public/plugin.ts b/src/plugins/workspace/public/plugin.ts index 6c6b8bf9ad06..21d8a24727da 100644 --- a/src/plugins/workspace/public/plugin.ts +++ b/src/plugins/workspace/public/plugin.ts @@ -9,11 +9,12 @@ import { Plugin, CoreStart, CoreSetup } from '../../../core/public'; import { getWorkspaceIdFromUrl } from '../../../core/public/utils'; import { WorkspaceClient } from './workspace_client'; import { getWorkspaceColumn } from './components/workspace_column'; + interface WorkspacePluginSetupDeps { savedObjectsManagement?: SavedObjectsManagementPluginSetup; } -export class WorkspacePlugin implements Plugin<{}, {}> { +export class WorkspacePlugin implements Plugin<{}, {}, WorkspacePluginSetupDeps> { private coreStart?: CoreStart; private currentWorkspaceSubscription?: Subscription; private _changeSavedObjectCurrentWorkspace() {