tree picker search only works for content, media and members so hide for everything else

This commit is contained in:
Mads Rasmussen
2017-01-12 10:11:03 +01:00
parent 2085063231
commit 16d8c55fa7
2 changed files with 6 additions and 0 deletions

View File

@@ -38,6 +38,11 @@ angular.module("umbraco").controller("Umbraco.Overlays.TreePickerController",
}
}
}
// Search is only working for content, media and member section so we will remove it from everything else
if($scope.section === "content" || $scope.section === "media" || $scope.section === "member" ) {
$scope.enableSearh = true;
}
//create the custom query string param for this tree
$scope.customTreeParams = dialogOptions.startNodeId ? "startNodeId=" + dialogOptions.startNodeId : "";

View File

@@ -2,6 +2,7 @@
<div class="umb-control-group">
<umb-tree-search-box
ng-if="enableSearh"
hide-search-callback="hideSearch"
search-callback="onSearchResults"
search-from-id="{{searchInfo.searchFromId}}"