Ensuring you can create new document types in root.
Parsing result of webservice call as integer. Ensuring the correct error messages are shown.
This commit is contained in:
@@ -251,7 +251,7 @@
|
||||
}),
|
||||
//get content type count
|
||||
countContentTypeResource().then(function (result) {
|
||||
scope.compositionsDialogModel.totalContentTypes = result;
|
||||
scope.compositionsDialogModel.totalContentTypes = parseInt(result, 10);
|
||||
})
|
||||
]).then(function () {
|
||||
//resolves when both other promises are done, now show it
|
||||
|
||||
@@ -15,13 +15,12 @@
|
||||
</div>
|
||||
|
||||
<umb-empty-state
|
||||
ng-if="model.totalContentTypes === 0"
|
||||
ng-if="model.availableCompositeContentTypes.length === 0 && model.totalContentTypes <= 1"
|
||||
position="center">
|
||||
There are no content types available to use as a composition.
|
||||
</umb-empty-state>
|
||||
|
||||
<umb-empty-state
|
||||
ng-if="model.availableCompositeContentTypes.length === 0 && model.totalContentTypes !== 0"
|
||||
ng-if="model.availableCompositeContentTypes.length === 0 && model.totalContentTypes > 1"
|
||||
position="center">
|
||||
This content type is used in a composition, and therefore cannot be composed itself.
|
||||
</umb-empty-state>
|
||||
@@ -42,4 +41,4 @@
|
||||
</div>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</ul>
|
||||
Reference in New Issue
Block a user