From 31937bfde2199efd0aa429ee983bcc4ba5420625 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Thu, 26 Feb 2026 11:42:08 +0100 Subject: [PATCH] . --- module/applications/sheets/api/application-mixin.mjs | 6 +++--- templates/sheets/global/partials/inventory-item-V2.hbs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module/applications/sheets/api/application-mixin.mjs b/module/applications/sheets/api/application-mixin.mjs index 4ff63492..449880fb 100644 --- a/module/applications/sheets/api/application-mixin.mjs +++ b/module/applications/sheets/api/application-mixin.mjs @@ -433,7 +433,7 @@ export default function DHApplicationMixin(Base) { icon: 'fa-solid fa-lightbulb', condition: element => { const target = element.closest('[data-item-uuid]'); - return !target.dataset.disabled && target.dataset.subType !== 'beastform'; + return !target.dataset.disabled && target.dataset.itemType !== 'beastform'; }, callback: async target => (await getDocFromElement(target)).update({ disabled: true }) }, @@ -442,7 +442,7 @@ export default function DHApplicationMixin(Base) { icon: 'fa-regular fa-lightbulb', condition: element => { const target = element.closest('[data-item-uuid]'); - return target.dataset.disabled && target.dataset.subType !== 'beastform'; + return target.dataset.disabled && target.dataset.itemType !== 'beastform'; }, callback: async target => (await getDocFromElement(target)).update({ disabled: false }) } @@ -538,7 +538,7 @@ export default function DHApplicationMixin(Base) { icon: 'fa-solid fa-trash', condition: element => { const target = element.closest('[data-item-uuid]'); - return target.dataset.subType !== 'beastform'; + return target.dataset.itemType !== 'beastform'; }, callback: async (target, event) => { const doc = await getDocFromElement(target); diff --git a/templates/sheets/global/partials/inventory-item-V2.hbs b/templates/sheets/global/partials/inventory-item-V2.hbs index d00e2ca8..fec215a0 100644 --- a/templates/sheets/global/partials/inventory-item-V2.hbs +++ b/templates/sheets/global/partials/inventory-item-V2.hbs @@ -20,7 +20,7 @@ Parameters: