mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Maps][6.7] fix breadcrumbs in Maps application (#34270)
This commit is contained in:
parent
f6b8f91c3f
commit
8afef73af0
2 changed files with 11 additions and 1 deletions
|
@ -12,7 +12,12 @@
|
|||
aria-level="1"
|
||||
ng-if="showPluginBreadcrumbs">
|
||||
<div class="kuiLocalBreadcrumb">
|
||||
<a class="kuiLocalBreadcrumb__link" href="#">Map</a>
|
||||
<a
|
||||
class="kuiLocalBreadcrumb__link"
|
||||
href="#"
|
||||
i18n-id="xpack.maps.mapController.mapsBreadcrumbLabel"
|
||||
i18n-default-message="Maps"
|
||||
></a>
|
||||
</div>
|
||||
<div class="kuiLocalBreadcrumb">
|
||||
{{ getMapTitle() }}
|
||||
|
|
|
@ -201,6 +201,10 @@ app.controller('GisMapController', ($scope, $route, config, kbnUrl, localStorage
|
|||
}
|
||||
});
|
||||
|
||||
$scope.getMapTitle = function () {
|
||||
return $scope.map.title;
|
||||
};
|
||||
// k7design breadcrumbs
|
||||
// TODO subscribe to store change and change when store updates title
|
||||
chrome.breadcrumbs.set([
|
||||
{ text: i18n.translate('xpack.maps.mapController.mapsBreadcrumbLabel', {
|
||||
|
@ -208,6 +212,7 @@ app.controller('GisMapController', ($scope, $route, config, kbnUrl, localStorage
|
|||
}), href: '#' },
|
||||
{ text: $scope.map.title }
|
||||
]);
|
||||
config.watch('k7design', (val) => $scope.showPluginBreadcrumbs = !val);
|
||||
|
||||
async function doSave(saveOptions) {
|
||||
const store = getStore();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue