You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Include property aliases in compatible composition check (#19277)
* add method to get all property aliases
* pass property aliases to composition modal
* put in a box + adjust spacing
* disable if doc type is not compatible for composing
* compare with what is used for composition
* add comment
---------
Co-authored-by: Niels Lyngsø <[email protected]>
Copy file name to clipboardExpand all lines: src/Umbraco.Web.UI.Client/src/packages/content/content-type/modals/composition-picker/composition-picker-modal.element.ts
+17-2Lines changed: 17 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,9 @@ export class UmbCompositionPickerModalElement extends UmbModalBaseElement<
39
39
@state()
40
40
private_usedForInheritance: Array<string>=[];
41
41
42
+
@state()
43
+
private_usedForComposition: Array<string>=[];
44
+
42
45
overrideconnectedCallback(){
43
46
super.connectedCallback();
44
47
@@ -53,6 +56,7 @@ export class UmbCompositionPickerModalElement extends UmbModalBaseElement<
Copy file name to clipboardExpand all lines: src/Umbraco.Web.UI.Client/src/packages/content/content-type/modals/composition-picker/composition-picker-modal.token.ts
Copy file name to clipboardExpand all lines: src/Umbraco.Web.UI.Client/src/packages/content/content-type/structure/content-type-structure-manager.class.ts
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -816,6 +816,17 @@ export class UmbContentTypeStructureManager<
816
816
);
817
817
}
818
818
819
+
/**
820
+
* Get all property aliases for the content type including inherited and composed content types.
821
+
* @returns {Promise<Array<string>>} - A promise that will be resolved with the list of all content type property aliases.
Copy file name to clipboardExpand all lines: src/Umbraco.Web.UI.Client/src/packages/content/content-type/workspace/views/design/content-type-design-editor.element.ts
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -389,17 +389,25 @@ export class UmbContentTypeDesignEditorElement extends UmbLitElement implements
0 commit comments