Allow editing embedded documents (used for spells here) in the item's sheet itself.

This commit is contained in:
Oliver-Akins 2024-01-11 19:03:24 -07:00
parent 516f7ac826
commit 7381a2a7fe
6 changed files with 56 additions and 7 deletions

View file

@ -24,6 +24,8 @@ export class PlayerSheet extends GenericActorSheet {
.on(`change`, this.actor.genericEmbeddedUpdate.bind(this.actor));
html.find(`[data-embedded-delete]`)
.on(`click`, this.actor.genericEmbeddedDelete.bind(this.actor));
html.find(`[data-embedded-edit]`)
.on(`click`, this.actor.openEmbeddedSheet.bind(this.actor));
};
async getData() {