@umbraco-cms/backoffice 16.5.0-rc → 16.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -261,6 +261,8 @@ export class UmbContentDetailWorkspaceContextBase extends UmbEntityDetailWorkspa
|
|
|
261
261
|
const segments = this.structure.variesBySegment ? [] : undefined;
|
|
262
262
|
const repo = new UmbDataTypeDetailRepository(this);
|
|
263
263
|
const propertyTypes = await this.structure.getContentTypeProperties();
|
|
264
|
+
const contentTypeVariesByCulture = this.structure.getVariesByCulture();
|
|
265
|
+
const contentTypeVariesBySegment = this.structure.getVariesBySegment();
|
|
264
266
|
const valueDefinitions = await Promise.all(propertyTypes.map(async (property) => {
|
|
265
267
|
// TODO: Implement caching for data-type requests. [NL]
|
|
266
268
|
const dataType = (await repo.requestByUnique(property.dataType.unique)).data;
|
|
@@ -277,8 +279,9 @@ export class UmbContentDetailWorkspaceContextBase extends UmbEntityDetailWorkspa
|
|
|
277
279
|
propertyEditorSchemaAlias: dataType.editorAlias,
|
|
278
280
|
config: dataType.values,
|
|
279
281
|
typeArgs: {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
+
// Only vary if the content type varies:
|
|
283
|
+
variesByCulture: contentTypeVariesByCulture ? property.variesByCulture : false,
|
|
284
|
+
variesBySegment: contentTypeVariesBySegment ? property.variesBySegment : false,
|
|
282
285
|
},
|
|
283
286
|
};
|
|
284
287
|
}));
|