Add the ability to edit the item names (closes #149)
This commit is contained in:
parent
3a5a3ecc38
commit
5a0484190e
10 changed files with 51 additions and 10 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue