Fixes tree sync with sorting media

This commit is contained in:
Shannon
2018-11-21 16:59:23 +11:00
parent fda327a604
commit 3947a471be

View File

@@ -48,7 +48,9 @@
mediaResource.sort(args)
.then(function(){
navigationService.syncTree({ tree: "media", path: $scope.currentNode.path, forceReload: true, activate: false });
navigationService.syncTree({ tree: "media", path: $scope.currentNode.path, forceReload: true })
.then(() => navigationService.reloadNode($scope.currentNode));
vm.saveButtonState = "success";
}, function(error) {
vm.error = error;
@@ -84,4 +86,4 @@
}
angular.module("umbraco").controller("Umbraco.Editors.Media.SortController", MediaSortController);
})();
})();