From 7565bcd9e7f7ec56cc88bdfdb41e77e37284efbd Mon Sep 17 00:00:00 2001 From: SuZhou-Joe Date: Tue, 23 Jul 2024 08:48:22 +0800 Subject: [PATCH] feat: reuse applications (#1094) Signed-off-by: SuZhou-Joe --- public/plugin.ts | 36 ++++++------------------------------ 1 file changed, 6 insertions(+), 30 deletions(-) diff --git a/public/plugin.ts b/public/plugin.ts index 087c4b49f..dcc3c7cb1 100644 --- a/public/plugin.ts +++ b/public/plugin.ts @@ -223,20 +223,6 @@ export class IndexManagementPlugin implements Plugin { - return mountWrapper(params, ROUTES.INDEX_POLICIES); - }, - }); - // index templates route core.application.register({ id: `opensearch_index_management_dashboards_${encodeURIComponent(ROUTES.TEMPLATES)}`, @@ -307,20 +293,6 @@ export class IndexManagementPlugin implements Plugin { - return mountWrapper(params, ROUTES.SNAPSHOT_POLICIES); - }, - }); - // snapshot repositories route core.application.register({ id: `opensearch_index_management_dashboards_${encodeURIComponent(ROUTES.REPOSITORIES)}`, @@ -360,8 +332,10 @@ export class IndexManagementPlugin implements Plugin