Attribute Item Subtype #76

Merged
Oliver merged 50 commits from feature/attribute-items into main 2026-04-27 02:12:56 +00:00
Showing only changes of commit 3a7ffa4332 - Show all commits

View file

@ -110,7 +110,7 @@ export class PlayerSheet extends
if (this.tabGroups.primary === `attributes` && !this.hasAttributesTab) {
Logger.debug(`Asserting app "${this.id}" from tab "attributes" to "${initial}"`);
this.tabGroups.primary = initial;
}
};
};
/**
@ -224,33 +224,7 @@ export class PlayerSheet extends
new ContextMenu.implementation(
this.element,
`li.item`,
[
{
label: _loc(`taf.misc.edit`),
condition: (el) => {
const itemUuid = el.dataset.itemUuid;
const itemExists = itemUuid != null && itemUuid !== ``;
return this.isEditable && itemExists;
},
onClick: editItemFromElement,
},
{
label: _loc(`taf.misc.delete`),
condition: (el) => {
const itemUuid = el.dataset.itemUuid;
const itemExists = itemUuid != null && itemUuid !== ``;
return this.isEditable && itemExists;
},
onClick: deleteItemFromElement,
},
],
{ jQuery: false, fixed: true },
);
new ContextMenu.implementation(
this.element,
`fieldset.attribute`,
`[data-item-uuid]`,
[
{
label: _loc(`taf.misc.edit`),