fix: add template to the blueprint model, although it isn't returned from the server
This commit is contained in:
@@ -41,6 +41,7 @@ export class UmbDocumentBlueprintServerDataSource implements UmbDetailDataSource
|
||||
unique: '',
|
||||
collection: null,
|
||||
},
|
||||
template: null,
|
||||
values: [],
|
||||
variants: [],
|
||||
...preset,
|
||||
@@ -113,6 +114,7 @@ export class UmbDocumentBlueprintServerDataSource implements UmbDetailDataSource
|
||||
unique: data.documentType.id,
|
||||
collection: data.documentType.collection ? { unique: data.documentType.collection.id } : null,
|
||||
},
|
||||
template: null, // TODO: Should this be returned from the server?
|
||||
};
|
||||
|
||||
return { data: document };
|
||||
@@ -133,7 +135,7 @@ export class UmbDocumentBlueprintServerDataSource implements UmbDetailDataSource
|
||||
id: model.unique,
|
||||
parent: parentUnique ? { id: parentUnique } : null,
|
||||
documentType: { id: model.documentType.unique },
|
||||
|
||||
template: model.template ? { id: model.template.unique } : null,
|
||||
values: model.values,
|
||||
variants: model.variants,
|
||||
};
|
||||
|
||||
@@ -10,6 +10,7 @@ export interface UmbDocumentBlueprintDetailModel {
|
||||
collection: UmbReferenceByUnique | null;
|
||||
};
|
||||
entityType: UmbDocumentBlueprintEntityType;
|
||||
template: UmbReferenceByUnique | null;
|
||||
unique: string;
|
||||
values: Array<UmbDocumentBlueprintValueModel>;
|
||||
variants: Array<UmbDocumentBlueprintVariantModel>;
|
||||
|
||||
Reference in New Issue
Block a user