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
V15: Adds migration of data type configuration when changing property editor UI (#18534)
* feat: adds comparer to keep useful data around when migrating from one property editor ui to another
this is really useful when migrating from tinymce to tiptap for example
* stores values in property to access later
Copy file name to clipboardexpand all lines: src/Umbraco.Web.UI.Client/src/packages/data-type/workspace/data-type-workspace.context.ts
+24-3
Original file line number
Diff line number
Diff line change
@@ -227,14 +227,35 @@ export class UmbDataTypeWorkspaceContext
227
227
constdata=this._data.getCurrent();
228
228
if(!data)return;
229
229
230
+
// We are going to transfer the default data from the schema and the UI (the UI can override the schema data).
231
+
// Let us figure out which editors are alike from the inherited data, so we can keep that data around and only transfer the data that is not
232
+
// inherited from the previous data type.
230
233
this.#settingsDefaultData =[
231
234
...this.#propertyEditorSchemaSettingsDefaultData,
232
235
...this.#propertyEditorUISettingsDefaultData,
233
236
]satisfiesArray<UmbDataTypePropertyValueModel>;
234
-
// We check for satisfied type, because we will be directly transferring them to become value. Future note, if they are not satisfied, we need to transfer alias and value. [NL]
0 commit comments