Commit b1350182 by Kalyani Committed by Madhan Neethiraj

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

parent ee8c81df
......@@ -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');
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment