U4-7847 Do not allow folders to be created underneath content types (or data types)

This commit is contained in:
Mads Rasmussen
2016-01-27 15:29:53 +01:00
parent 3addffbd34
commit 98c65ff8f4
2 changed files with 2 additions and 1 deletions

View File

@@ -9,6 +9,7 @@
function DocumentTypesCreateController($scope, $location, navigationService, contentTypeResource, formHelper, appState, notificationsService, localizationService) {
$scope.model = {
allowCreateFolder: $scope.dialogOptions.currentNode.parentId === null || $scope.dialogOptions.currentNode.nodeType === "container",
folderName: "",
creatingFolder: false,
};

View File

@@ -20,7 +20,7 @@
<span class="menu-label"><localize key="create_documentTypeWithoutTemplate"></localize></span>
</a>
</li>
<li>
<li ng-if="model.allowCreateFolder">
<a href="" ng-click="showCreateFolder()">
<i class="large icon-folder"></i>
<span class="menu-label"><localize key="general_folder"></localize></span>