mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Fix bug with using title attribute in breadcrumbs directive.
This commit is contained in:
parent
40e6f25aa3
commit
f961548368
3 changed files with 12 additions and 6 deletions
|
@ -8,7 +8,11 @@
|
|||
data-transclude-slot="topLeftCorner"
|
||||
>
|
||||
<!-- Breadcrumbs. -->
|
||||
<bread-crumbs title="getDashTitle()" use-links="true" omit-current-page="true"></bread-crumbs>
|
||||
<bread-crumbs
|
||||
page-title="getDashTitle()"
|
||||
use-links="true"
|
||||
omit-current-page="true"
|
||||
></bread-crumbs>
|
||||
</div>
|
||||
|
||||
<!-- Search. -->
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
<a class=kuiLocalBreadcrumb__link" href="{{breadCrumbUrl.url}}">{{breadCrumbUrl.breadcrumb}}</a>
|
||||
</div>
|
||||
<div class="kuiLocalBreadcrumb" ng-if="!useLinks" ng-repeat="breadcrumb in breadcrumbs">
|
||||
{{breadcrumb}}
|
||||
{{ breadcrumb }}
|
||||
</div>
|
||||
<div class="kuiLocalBreadcrumb" ng-if="title">
|
||||
{{title}}
|
||||
<div class="kuiLocalBreadcrumb" ng-if="pageTitle">
|
||||
{{ pageTitle }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -8,13 +8,15 @@ const module = uiModules.get('kibana');
|
|||
module.directive('breadCrumbs', function ($location) {
|
||||
return {
|
||||
restrict: 'E',
|
||||
replace: true,
|
||||
scope: {
|
||||
omitCurrentPage: '=',
|
||||
/**
|
||||
* Optional title to append at the end of the breadcrumbs
|
||||
* Optional title to append at the end of the breadcrumbs. Note that this can't just be
|
||||
* 'title', because that will be interpreted by browsers as an actual 'title' HTML attribute.
|
||||
* @type {String}
|
||||
*/
|
||||
title: '=',
|
||||
pageTitle: '=',
|
||||
/**
|
||||
* If true, makes each breadcrumb a clickable link.
|
||||
* @type {String}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue