From 6fa536cd71244f9bbf3345b91e11c118de3f3962 Mon Sep 17 00:00:00 2001 From: Hannah Mudge Date: Wed, 16 Aug 2023 13:03:35 -0600 Subject: [PATCH] Switch back to `APP_NAME` for now --- src/plugins/navigation_embeddable/common/constants.ts | 7 ------- src/plugins/navigation_embeddable/common/index.ts | 8 +------- .../public/embeddable/navigation_embeddable_factory.ts | 4 ++-- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/src/plugins/navigation_embeddable/common/constants.ts b/src/plugins/navigation_embeddable/common/constants.ts index d3b25a888a084..9731275e04f14 100644 --- a/src/plugins/navigation_embeddable/common/constants.ts +++ b/src/plugins/navigation_embeddable/common/constants.ts @@ -17,10 +17,3 @@ export const APP_ICON = 'link'; export const APP_NAME = i18n.translate('navigationEmbeddable.visTypeAlias.title', { defaultMessage: 'Links', }); - -export const EMBEDDABLE_DISPLAY_NAME = i18n.translate( - 'navigationEmbeddable.embeddableDisplayName', - { - defaultMessage: 'links', - } -); diff --git a/src/plugins/navigation_embeddable/common/index.ts b/src/plugins/navigation_embeddable/common/index.ts index 0251a4d26782c..9cb4fc42124aa 100644 --- a/src/plugins/navigation_embeddable/common/index.ts +++ b/src/plugins/navigation_embeddable/common/index.ts @@ -6,10 +6,4 @@ * Side Public License, v 1. */ -export { - APP_ICON, - APP_NAME, - CONTENT_ID, - LATEST_VERSION, - EMBEDDABLE_DISPLAY_NAME, -} from './constants'; +export { APP_ICON, APP_NAME, CONTENT_ID, LATEST_VERSION } from './constants'; diff --git a/src/plugins/navigation_embeddable/public/embeddable/navigation_embeddable_factory.ts b/src/plugins/navigation_embeddable/public/embeddable/navigation_embeddable_factory.ts index ecbaaf8ba6ee2..d05ca560e350a 100644 --- a/src/plugins/navigation_embeddable/public/embeddable/navigation_embeddable_factory.ts +++ b/src/plugins/navigation_embeddable/public/embeddable/navigation_embeddable_factory.ts @@ -22,9 +22,9 @@ import { NavigationEmbeddableByReferenceInput, NavigationEmbeddableInput, } from './types'; +import { APP_ICON, APP_NAME, CONTENT_ID } from '../../common'; import type { NavigationEmbeddable } from './navigation_embeddable'; import { NAV_VERTICAL_LAYOUT } from '../../common/content_management'; -import { APP_ICON, APP_NAME, CONTENT_ID, EMBEDDABLE_DISPLAY_NAME } from '../../common'; import { getNavigationEmbeddableAttributeService } from '../services/attribute_service'; import { coreServices, untilPluginStartServicesReady } from '../services/kibana_services'; @@ -126,7 +126,7 @@ export class NavigationEmbeddableFactoryDefinition } public getDisplayName() { - return EMBEDDABLE_DISPLAY_NAME; + return APP_NAME; } public getIconType() {