tree picker search only works for content, media and members so hide for everything else
This commit is contained in:
@@ -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 : "";
|
||||
|
||||
@@ -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}}"
|
||||
|
||||
Reference in New Issue
Block a user