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 authored and nul800sebastiaan committed Aug 31, 2020
1 parent 8a6d2cc commit 5bb61d1
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,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 5bb61d1

Please sign in to comment.