Skip to content

Commit

Permalink
Add visual indicator for first initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
weltenwort committed Dec 6, 2016
1 parent 840278f commit 4730c77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/core_plugins/kibana/public/context/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@
<div class="container-fluid" role="main">
<div class="row">
<div class="col-md-12">
<div class="discover-table" fixed-scroll>
<div class="discover-overlay" ng-if="!contextApp.isInitialized">
<h2>Loading...</h2>
</div>
<div class="discover-table" ng-if="contextApp.isInitialized" fixed-scroll>
<doc-table
hits="contextApp.rows"
index-pattern="contextApp.indexPattern"
Expand Down
4 changes: 2 additions & 2 deletions src/core_plugins/kibana/public/context/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ function ContextAppController($q, config, es) {

this.anchorRow = null;
this.rows = [];
this.initialized = false;
this.isInitialized = false;

this.initialize = () => (
this.actions.reload()
.then(() => this.initialized = true)
.then(() => this.isInitialized = true)
);

this.actions = {
Expand Down

0 comments on commit 4730c77

Please sign in to comment.