[metadata] Hide the search result when show in assist is clicked
@@ -1387,6 +1387,7 @@ from notebook.conf import ENABLE_QUERY_BUILDER
});
huePubSub.subscribe('assist.db.highlight', function (location) {
+ huePubSub.publish('assist.hide.search');
var foundSource;
$.each(self.sources(), function (idx, source) {
if (source.sourceType === location.sourceType) {
@@ -1787,6 +1788,10 @@ from notebook.conf import ENABLE_QUERY_BUILDER
self.searching = ko.observable(false);
self.searchActive = ko.observable(false);
+ huePubSub.subscribe('assist.hide.search', function () {
+ self.searchActive(false);
+ });
+
var lastQuery = -1;
self.availablePanels = [
