fixes: U4-9744 Creating folders from the media picker doesn't work

This commit is contained in:
Mads Rasmussen
2017-04-06 11:34:50 +02:00
parent dce9dea8f3
commit 0da8604639
2 changed files with 4 additions and 3 deletions

View File

@@ -61,6 +61,7 @@ angular.module("umbraco")
$scope.submitFolder = function() {
if ($scope.newFolderName) {
$scope.creatingFolder = true;
mediaResource
.addFolder($scope.newFolderName, $scope.currentFolder.id)
.then(function(data) {
@@ -69,7 +70,7 @@ angular.module("umbraco")
cacheKey: "__media", //this is the main media tree cache key
childrenOf: data.parentId //clear the children of the parent
});
$scope.creatingFolder = false;
$scope.gotoFolder(data);
$scope.showFolderInput = false;
$scope.newFolderName = "";

View File

@@ -37,7 +37,7 @@
</div>
<div class="row umb-control-group" ng-if="!searchOptions.filter">
<div class="row umb-control-group" ng-show="!searchOptions.filter">
<ul class="umb-breadcrumbs">
<li ng-hide="startNodeId != -1" class="umb-breadcrumbs__ancestor">
<a href ng-click="gotoFolder()" prevent-default>Media</a>
@@ -64,7 +64,7 @@
focus-when="{{showFolderInput}}" />
</li>
</ul>
<div class="umb-loader" ng-if="creatingFolder"></div>
</div>
<umb-file-dropzone