You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ma...@apache.org on 2017/07/10 13:53:43 UTC

incubator-atlas git commit: ATLAS-1938: updated search UI to avoid unnecessary calls on Refresh button click

Repository: incubator-atlas
Updated Branches:
  refs/heads/master ee8c81df4 -> b13501825


ATLAS-1938: updated search UI to avoid unnecessary calls on Refresh button click

Signed-off-by: Madhan Neethiraj <ma...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/b1350182
Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/b1350182
Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/b1350182

Branch: refs/heads/master
Commit: b13501825028ea6c8ede8f6eacdf97bf58feacb8
Parents: ee8c81d
Author: Kalyani <ka...@freestoneinfotech.com>
Authored: Fri Jul 7 16:09:36 2017 +0530
Committer: Madhan Neethiraj <ma...@apache.org>
Committed: Mon Jul 10 06:35:29 2017 -0700

----------------------------------------------------------------------
 dashboardv2/public/js/views/search/SearchLayoutView.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/b1350182/dashboardv2/public/js/views/search/SearchLayoutView.js
----------------------------------------------------------------------
diff --git a/dashboardv2/public/js/views/search/SearchLayoutView.js b/dashboardv2/public/js/views/search/SearchLayoutView.js
index 7ac394c..c77d8a7 100644
--- a/dashboardv2/public/js/views/search/SearchLayoutView.js
+++ b/dashboardv2/public/js/views/search/SearchLayoutView.js
@@ -235,7 +235,9 @@ define(['require',
             },
             onRefreshButton: function() {
                 this.fetchCollection();
-                if (this.searchVent) {
+                //to check url query param contain type or not 
+                var checkURLValue = Utils.getUrlState.getQueryParams(this.url);
+                if (this.searchVent && (_.has(checkURLValue, "tag") || _.has(checkURLValue, "type") || _.has(checkURLValue, "query"))) {
                     this.searchVent.trigger('search:refresh');
                 }
             },