Trait Items #72

Open
Oliver wants to merge 41 commits from feature/trait-items into main
Showing only changes of commit f237bce4d9 - Show all commits

View file

@ -83,10 +83,8 @@ export function GenericAppMixin(HandlebarsApp) {
});
};
async _preparePartContext(partId, ctx, opts) {
ctx = await super._preparePartContext(partId, ctx, opts);
delete ctx.document;
delete ctx.fields;
async _prepareContext() {
const ctx = {};
ctx.meta ??= {};
ctx.meta.idp = this.document?.uuid ?? this.id;
@ -95,7 +93,6 @@ export function GenericAppMixin(HandlebarsApp) {
ctx.meta.editable = this.isEditable || game.user.isGM;
ctx.meta.embedded = this.document.isEmbedded;
};
delete ctx.editable;
return ctx;
};