From 7e8d7c92ade0503243ec2d36d7323c7b08af0229 Mon Sep 17 00:00:00 2001 From: Elastic Jasper Date: Wed, 23 Nov 2016 17:04:19 -0500 Subject: [PATCH] `render-counter` directive Backports PR #9206 **Commit 1:** [docTable/row] delay first render until watchers initialize * Original sha: 4945e088c135f4d5f36c971d442f39a764b0c32c * Authored by spalger on 2016-11-23T18:57:22Z **Commit 2:** [docTable/row] emit a renderComplete event, count in table directive * Original sha: 641f9af0e342f4c40b5ab9f46ae11182ff7b70d4 * Authored by spalger on 2016-11-23T18:58:21Z **Commit 3:** [renderCounter] unify render counting login into directive * Original sha: 0c084acc9715ec6712922727476c4f369a1ab0c7 * Authored by spalger on 2016-11-23T21:26:44Z **Commit 4:** [docTable] remove unused var * Original sha: 275bf70a955f76d4ca5642cdd93f84f2ec9eacbb * Authored by spalger on 2016-11-23T22:00:52Z --- .../dashboard/components/panel/panel.html | 5 ++- .../kibana/public/discover/index.html | 3 +- .../public/visualize/editor/editor.html | 1 + src/ui/public/directives/render_counter.js | 31 +++++++++++++++++++ .../public/doc_table/components/table_row.js | 17 ++++------ src/ui/public/doc_table/doc_table.html | 2 +- src/ui/public/visualize/visualize.js | 13 +++----- 7 files changed, 49 insertions(+), 23 deletions(-) create mode 100644 src/ui/public/directives/render_counter.js diff --git a/src/core_plugins/kibana/public/dashboard/components/panel/panel.html b/src/core_plugins/kibana/public/dashboard/components/panel/panel.html index 6665034471980..874a62b75522a 100644 --- a/src/core_plugins/kibana/public/dashboard/components/panel/panel.html +++ b/src/core_plugins/kibana/public/dashboard/components/panel/panel.html @@ -28,13 +28,16 @@ search-source="savedObj.searchSource" show-spy-panel="chrome.getVisible()" ui-state="uiState" + render-counter class="panel-content"> - diff --git a/src/core_plugins/kibana/public/discover/index.html b/src/core_plugins/kibana/public/discover/index.html index 1a60d56b6b641..0f2faa466bc67 100644 --- a/src/core_plugins/kibana/public/discover/index.html +++ b/src/core_plugins/kibana/public/discover/index.html @@ -125,7 +125,8 @@

Searching

sorting="state.sort" columns="state.columns" infinite-scroll="true" - filter="filterQuery"> + filter="filterQuery" + render-counter>