Limit link picker to content tree in content section (#12311)
* Remove unused injected mediaHelper * Limit tree to content tree alias in content section
This commit is contained in:
committed by
GitHub
parent
8baa66b8f3
commit
0b48a2c8b7
@@ -1,6 +1,6 @@
|
||||
//used for the media picker dialog
|
||||
angular.module("umbraco").controller("Umbraco.Editors.LinkPickerController",
|
||||
function ($scope, eventsService, entityResource, mediaResource, mediaHelper, udiParser, userService, localizationService, editorService) {
|
||||
function ($scope, eventsService, entityResource, mediaResource, udiParser, userService, localizationService, editorService) {
|
||||
|
||||
var vm = this;
|
||||
var dialogOptions = $scope.model;
|
||||
@@ -20,6 +20,7 @@ angular.module("umbraco").controller("Umbraco.Editors.LinkPickerController",
|
||||
$scope.model.title = value;
|
||||
});
|
||||
}
|
||||
|
||||
$scope.customTreeParams = dialogOptions.dataTypeKey ? "dataTypeKey=" + dialogOptions.dataTypeKey : "";
|
||||
$scope.dialogTreeApi = {};
|
||||
$scope.model.target = {};
|
||||
|
||||
@@ -85,6 +85,7 @@
|
||||
|
||||
<div ng-hide="searchInfo.showSearch">
|
||||
<umb-tree section="content"
|
||||
treealias="content"
|
||||
hideheader="true"
|
||||
hideoptions="true"
|
||||
api="dialogTreeApi"
|
||||
|
||||
Reference in New Issue
Block a user