-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lens] Include link to lens from Visualize (#40542)
- Loading branch information
Wylie Conlon
authored
Jul 9, 2019
1 parent
9c754fe
commit e2dc494
Showing
3 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
x-pack/legacy/plugins/lens/public/register_vis_type_alias.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { i18n } from '@kbn/i18n'; | ||
import { visualizations } from '../../../../../src/legacy/core_plugins/visualizations/public'; | ||
|
||
const NOT_INTERNATIONALIZED_PRODUCT_NAME = 'Lens Visualizations'; | ||
|
||
visualizations.types.visTypeAliasRegistry.add({ | ||
aliasUrl: '/app/lens/', | ||
name: NOT_INTERNATIONALIZED_PRODUCT_NAME, | ||
title: i18n.translate('xpack.lens.visTypeAlias.title', { | ||
defaultMessage: 'Lens Visualizations', | ||
}), | ||
description: i18n.translate('xpack.lens.visTypeAlias.description', { | ||
defaultMessage: `Lens is a simpler way to create basic visualizations`, | ||
}), | ||
icon: 'faceHappy', | ||
}); |