diff --git a/platform/commonUI/browse/res/templates/browse.html b/platform/commonUI/browse/res/templates/browse.html
index c897b4272d..d926044f7e 100644
--- a/platform/commonUI/browse/res/templates/browse.html
+++ b/platform/commonUI/browse/res/templates/browse.html
@@ -28,13 +28,14 @@
>
-
+
-
+
diff --git a/platform/features/search/res/templates/search.html b/platform/features/search/res/templates/search.html
index d3d7fc26d6..977a3619f8 100644
--- a/platform/features/search/res/templates/search.html
+++ b/platform/features/search/res/templates/search.html
@@ -23,15 +23,14 @@
ng-controller="SearchController as controller">
-
- a
-
+
diff --git a/platform/features/search/src/controllers/SearchController.js b/platform/features/search/src/controllers/SearchController.js
index 95019b2ed7..335687add7 100644
--- a/platform/features/search/src/controllers/SearchController.js
+++ b/platform/features/search/src/controllers/SearchController.js
@@ -56,6 +56,13 @@ define(function () {
// We got the latest results now (and done loading)
loading = false;
$scope.results = searchService.getLatestResults(0, numResults);
+
+ // Update whether the file tree should be displayed
+ if ($scope.results.length === 0) {
+ $scope.ngModel.filter = false;
+ } else {
+ $scope.ngModel.filter = true;
+ }
}
}
waitForLatest();