Skip to content

Commit

Permalink
umbraco#7672 checking allowed image types on each folder switch
Browse files Browse the repository at this point in the history
  • Loading branch information
mmrauta committed Mar 28, 2020
1 parent 42ddd90 commit cec0bb1
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,15 +213,15 @@ angular.module("umbraco")
return f.path.indexOf($scope.startNodeId) !== -1;
});
});

mediaTypeHelper.getAllowedImagetypes(folder.id)
.then(function (types) {
vm.acceptedMediatypes = types;
});
} else {
$scope.path = [];
}

mediaTypeHelper.getAllowedImagetypes(folder.id)
.then(function (types) {
vm.acceptedMediatypes = types;
});

$scope.lockedFolder = (folder.id === -1 && $scope.model.startNodeIsVirtual) || hasFolderAccess(folder) === false;
$scope.currentFolder = folder;

Expand Down

0 comments on commit cec0bb1

Please sign in to comment.