diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/contenttype/umbcontenttypegroup.component.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/contenttype/umbcontenttypegroup.component.js index 82112012c0..3445b4039c 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/contenttype/umbcontenttypegroup.component.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/contenttype/umbcontenttypegroup.component.js @@ -45,9 +45,9 @@ vm.onChangeSortOrderValue( {group: vm.group}); } } - function clickComposition (documentTypeId) { + function clickComposition (contentTypeId) { if (vm.onClickComposition) { - vm.onClickComposition({documentTypeId: documentTypeId}); + vm.onClickComposition({contentTypeId: contentTypeId}); } } } diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/contenttype/umbcontenttypeproperty.component.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/contenttype/umbcontenttypeproperty.component.js index 8f27332ec2..c96944dbd5 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/contenttype/umbcontenttypeproperty.component.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/contenttype/umbcontenttypeproperty.component.js @@ -12,6 +12,7 @@ vm.edit = edit; vm.remove = remove; vm.changeSortOrderValue = changeSortOrderValue; + vm.clickComposition = clickComposition; function edit () { if (vm.onEdit) { @@ -31,6 +32,12 @@ } } + function clickComposition(contentTypeId) { + if (vm.onClickComposition) { + vm.onClickComposition({ contentTypeId: contentTypeId }); + } + } + } const umbContentTypePropertyComponent = { @@ -41,6 +48,7 @@ onEdit: '&', onRemove: '&', onChangeSortOrderValue: '&', + onClickComposition: '&?', valServerFieldAlias: '@', valServerFieldLabel: '@', valTabAlias: '@' diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/contenttype/umbcontenttypetab.component.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/contenttype/umbcontenttypetab.component.js index 6c0e5c8baf..5fb8297847 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/contenttype/umbcontenttypetab.component.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/contenttype/umbcontenttypetab.component.js @@ -59,9 +59,9 @@ } } - function clickComposition (documentTypeId) { + function clickComposition(contentTypeId) { if (vm.onClickComposition) { - vm.onClickComposition({documentTypeId: documentTypeId}); + vm.onClickComposition({ contentTypeId: contentTypeId}); } } diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbgroupsbuilder.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbgroupsbuilder.directive.js index 79da9e3ac6..9a116beb5a 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbgroupsbuilder.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbgroupsbuilder.directive.js @@ -484,9 +484,9 @@ }; - scope.openDocumentType = (documentTypeId) => { + scope.openContentType = (contentTypeId) => { const editor = { - id: documentTypeId, + id: contentTypeId, submit: () => { const args = { node: scope.model }; eventsService.emit("editors.documentType.reload", args); diff --git a/src/Umbraco.Web.UI.Client/src/less/components/umb-group-builder.less b/src/Umbraco.Web.UI.Client/src/less/components/umb-group-builder.less index cae8a1c253..486c0f1336 100644 --- a/src/Umbraco.Web.UI.Client/src/less/components/umb-group-builder.less +++ b/src/Umbraco.Web.UI.Client/src/less/components/umb-group-builder.less @@ -714,7 +714,7 @@ input.umb-group-builder__group-title-input:disabled:hover { } .umb-group-builder__property-tags.-right { - right: 0; + right: 4px; left: auto; } diff --git a/src/Umbraco.Web.UI.Client/src/views/components/contenttype/umb-content-type-property.html b/src/Umbraco.Web.UI.Client/src/views/components/contenttype/umb-content-type-property.html index fff779e626..9166f0c8ab 100644 --- a/src/Umbraco.Web.UI.Client/src/views/components/contenttype/umb-content-type-property.html +++ b/src/Umbraco.Web.UI.Client/src/views/components/contenttype/umb-content-type-property.html @@ -3,147 +3,144 @@