Repository: atlas Updated Branches: refs/heads/feature-odf cac4bee57 -> 22780b933
ATLAS-1938: updated search UI to avoid unnecessary calls on Refresh button click Signed-off-by: Madhan Neethiraj <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/b1350182 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/b1350182 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/b1350182 Branch: refs/heads/feature-odf Commit: b13501825028ea6c8ede8f6eacdf97bf58feacb8 Parents: ee8c81d Author: Kalyani <[email protected]> Authored: Fri Jul 7 16:09:36 2017 +0530 Committer: Madhan Neethiraj <[email protected]> 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/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'); } },
