Skip to content

Commit

Permalink
- Fix Visualize wizard breadcrumbs.
Browse files Browse the repository at this point in the history
- Use consistent "Create" terminology in both Visualize and Dashboard for creating new items.
- Use NoItems and PromptForItems components in Visualize listing view.
  • Loading branch information
cjcenizal committed Feb 6, 2017
1 parent de4f7b4 commit 10dbff6
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
</div>
</div>

<!-- NoResults -->
<!-- NoItems -->
<div
class="kuiPanel kuiPanel--centered kuiPanel--withHeader"
ng-if="!listingController.items.length && listingController.filter"
Expand All @@ -89,7 +89,7 @@
>
<div class="kuiPromptForItems">
<div class="kuiPromptForItems__message">
Looks like you don&rsquo;t have any dashboards. Let&rsquo;s add some!
Looks like you don&rsquo;t have any dashboards. Let&rsquo;s create some!
</div>

<div class="kuiPromptForItems__actions">
Expand All @@ -98,7 +98,7 @@
href="#/dashboard/create"
>
<span class="kuiButton__icon kuiIcon fa-plus"></span>
Add a dashboard
Create a dashboard
</a>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- Breadcrumbs. -->
<bread-crumbs
data-transclude-slot="topLeftCorner"
title="getVisualizationTitle()"
page-title="getVisualizationTitle()"
use-links="true"
omit-current-page="true"
omit-pages="['edit']"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,38 @@
</div>
</div>

<!-- NoResults -->
<div class="kuiPanel kuiPanel--centered" ng-if="!listingController.items.length">
<div class="kuiNoResults">
<!-- NoItems -->
<div
class="kuiPanel kuiPanel--centered kuiPanel--withHeader"
ng-if="!listingController.items.length && listingController.filter"
>
<div class="kuiNoItems">
No visualizations matched your search.
</div>
</div>

<!-- PromptForItems -->
<div
class="kuiPanel kuiPanel--centered kuiPanel--withHeader"
ng-if="!listingController.items.length && !listingController.filter"
>
<div class="kuiPromptForItems">
<div class="kuiPromptForItems__message">
Looks like you don&rsquo;t have any visualizations. Let&rsquo;s create some!
</div>

<div class="kuiPromptForItems__actions">
<a
class="kuiButton kuiButton--primary kuiButton--iconText"
href="#/visualize/new"
>
<span class="kuiButton__icon kuiIcon fa-plus"></span>
Create a visualization
</a>
</div>
</div>
</div>

<!-- Table -->
<table class="kuiTable" ng-if="listingController.items.length">
<thead>
Expand Down
2 changes: 2 additions & 0 deletions src/core_plugins/kibana/public/visualize/wizard/step_1.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<bread-crumbs
data-transclude-slot="topLeftCorner"
use-links="true"
omit-current-page="true"
page-title="'New'"
></bread-crumbs>
</div>
</kbn-top-nav>
Expand Down
2 changes: 2 additions & 0 deletions src/core_plugins/kibana/public/visualize/wizard/step_2.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<bread-crumbs
data-transclude-slot="topLeftCorner"
use-links="true"
omit-current-page="true"
page-title="'Choose search source'"
></bread-crumbs>
</div>
</kbn-top-nav>
Expand Down

0 comments on commit 10dbff6

Please sign in to comment.