From b4136af0ae7516641e95c5432607259abb8a4dd8 Mon Sep 17 00:00:00 2001 From: bowenlan-amzn Date: Wed, 24 Jun 2020 18:45:45 -0700 Subject: [PATCH] move ISM under management tab of sidebar --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 757fc8c4..d06a2caa 100644 --- a/index.js +++ b/index.js @@ -19,8 +19,9 @@ import { existsSync } from "fs"; import { createISMCluster } from "./server/clusters"; import { PolicyService, ManagedIndexService, IndexService } from "./server/services"; import { indices, policies, managedIndices } from "./server/routes"; +import { DEFAULT_APP_CATEGORIES } from "../../src/core/utils"; -export default function(kibana) { +export default function (kibana) { return new kibana.Plugin({ require: ["elasticsearch"], name: "opendistro_index_management_kibana", @@ -29,9 +30,10 @@ export default function(kibana) { title: "Index Management Kibana", description: "Kibana plugin for Index Management", main: "plugins/opendistro_index_management_kibana/app", + category: DEFAULT_APP_CATEGORIES.management, }, hacks: [], - styleSheetPaths: [resolve(__dirname, "public/app.scss"), resolve(__dirname, "public/app.css")].find(p => existsSync(p)), + styleSheetPaths: [resolve(__dirname, "public/app.scss"), resolve(__dirname, "public/app.css")].find((p) => existsSync(p)), }, config(Joi) {