get children from the current node id and not the parent

This commit is contained in:
Mads Rasmussen
2018-08-02 17:15:26 +02:00
parent f12091df5d
commit 3dff904264

View File

@@ -4,7 +4,7 @@
function ContentSortController($scope, $timeout, contentResource) {
var vm = this;
var parentId = $scope.currentNode.parentId;
var id = $scope.currentNode.id;
vm.loading = false;
vm.children = [];
@@ -22,7 +22,7 @@
function onInit() {
vm.loading = true;
contentResource.getChildren(parentId)
contentResource.getChildren(id)
.then(function(data){
vm.children = data.items;
vm.loading = false;