atlas-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mad...@apache.org
Subject incubator-atlas git commit: ATLAS-1938: updated search UI to avoid unnecessary calls on Refresh button click
Date Mon, 10 Jul 2017 13:54:03 GMT
Repository: incubator-atlas
Updated Branches:
  refs/heads/0.8-incubating 92f30b0e3 -> 688064fbf


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

Signed-off-by: Madhan Neethiraj <madhan@apache.org>
(cherry picked from commit b13501825028ea6c8ede8f6eacdf97bf58feacb8)


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

Branch: refs/heads/0.8-incubating
Commit: 688064fbfbfb08dfb74a85b51b63e28f9493eeae
Parents: 92f30b0
Author: Kalyani <kalyani.kashikar@freestoneinfotech.com>
Authored: Fri Jul 7 16:09:36 2017 +0530
Committer: Madhan Neethiraj <madhan@apache.org>
Committed: Mon Jul 10 06:53:59 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/688064fb/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');
                 }
             },


Mime
View raw message