Add the ability to edit the item names (closes #149)

This commit is contained in:
Oliver-Akins 2024-03-31 00:20:49 -06:00
parent 3a5a3ecc38
commit 5a0484190e
10 changed files with 51 additions and 10 deletions

View file

@ -48,10 +48,9 @@ export class UntypedItemSheet extends GenericItemSheet {
async getData() {
const ctx = await super.getData();
ctx.computed = {
showSettingsTab: ctx.isGM || this.item.isOwned,
isEmbedded: this.item.isOwned,
};
ctx.meta.showSettingsTab = ctx.isGM || this.item.isOwned;
ctx.meta.isEmbedded = this.item.isOwned;
ctx.meta.isEditable = this.isEditable;
return ctx;
};