Work towards using pop-out item sheets instead of inline-editing because inline-editing is annoying and kinda ugly TBH
This commit is contained in:
parent
dcdc1b7764
commit
516f7ac826
13 changed files with 150 additions and 73 deletions
|
|
@ -23,14 +23,12 @@ export class SpellSheet extends GenericItemSheet {
|
|||
};
|
||||
|
||||
async getData() {
|
||||
const ctx = {};
|
||||
const item = this.item.toObject(false);
|
||||
|
||||
ctx.name = super.name;
|
||||
ctx.item = item;
|
||||
ctx.system = item.system;
|
||||
ctx.flags = item.flags;
|
||||
const ctx = await super.getData();
|
||||
|
||||
ctx.item = this.item;
|
||||
ctx.system = this.item.system;
|
||||
ctx.flags = this.item.flags;
|
||||
console.log(ctx)
|
||||
return ctx;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue