-
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.
[es-management] implement k7Breadcrumbs (#26711)
* [es-manaagement] implement k7Breadcrumbs * fix i18n ids
- Loading branch information
1 parent
02cd345
commit 2078beb
Showing
3 changed files
with
54 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* 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 { MANAGEMENT_BREADCRUMB } from 'ui/management'; | ||
import { BASE_PATH } from '../common/constants'; | ||
|
||
export function getDashboardBreadcrumbs() { | ||
return [ | ||
MANAGEMENT_BREADCRUMB, | ||
{ | ||
text: i18n.translate('xpack.licenseMgmt.dashboard.breadcrumb', { | ||
defaultMessage: 'License management' | ||
}), | ||
href: `#${BASE_PATH}home` | ||
} | ||
]; | ||
} | ||
|
||
export function getUploadBreadcrumbs() { | ||
return [ | ||
...getDashboardBreadcrumbs(), | ||
{ | ||
text: i18n.translate('xpack.licenseMgmt.upload.breadcrumb', { | ||
defaultMessage: 'Upload' | ||
}) | ||
} | ||
]; | ||
} |
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