From c968b77ddcbb1e40de7a46684618570a92bc62d4 Mon Sep 17 00:00:00 2001 From: psitacus Date: Sat, 12 Jul 2025 03:20:47 -0600 Subject: [PATCH] see if this picks up the changes now --- .../sheets/api/item-attachment-sheet.mjs | 13 +++++++++++++ module/applications/sheets/items/armor.mjs | 11 +---------- module/applications/sheets/items/weapon.mjs | 9 --------- 3 files changed, 14 insertions(+), 19 deletions(-) diff --git a/module/applications/sheets/api/item-attachment-sheet.mjs b/module/applications/sheets/api/item-attachment-sheet.mjs index 44d240f9..e89c7cba 100644 --- a/module/applications/sheets/api/item-attachment-sheet.mjs +++ b/module/applications/sheets/api/item-attachment-sheet.mjs @@ -21,6 +21,19 @@ export default function ItemAttachmentSheet(Base) { } }; + static TABS = { + ...super.TABS, + primary: { + ...super.TABS?.primary, + tabs: [ + ...(super.TABS?.primary?.tabs || []), + { id: 'attachments' } + ], + initial: super.TABS?.primary?.initial || 'description', + labelPrefix: super.TABS?.primary?.labelPrefix || 'DAGGERHEART.GENERAL.Tabs' + } + }; + async _preparePartContext(partId, context) { await super._preparePartContext(partId, context); diff --git a/module/applications/sheets/items/armor.mjs b/module/applications/sheets/items/armor.mjs index a865259f..9120266f 100644 --- a/module/applications/sheets/items/armor.mjs +++ b/module/applications/sheets/items/armor.mjs @@ -13,7 +13,7 @@ export default class ArmorSheet extends ItemAttachmentSheet(DHBaseItemSheet) { } ] }; - + /**@override */ static PARTS = { header: { template: 'systems/daggerheart/templates/sheets/items/armor/header.hbs' }, @@ -30,15 +30,6 @@ export default class ArmorSheet extends ItemAttachmentSheet(DHBaseItemSheet) { ...super.PARTS, }; - /** @override */ - static TABS = { - primary: { - tabs: [{ id: 'description' }, { id: 'actions' }, { id: 'settings' }, { id: 'attachments' }], - initial: 'description', - labelPrefix: 'DAGGERHEART.GENERAL.Tabs' - } - }; - /**@inheritdoc */ async _preparePartContext(partId, context) { await super._preparePartContext(partId, context); diff --git a/module/applications/sheets/items/weapon.mjs b/module/applications/sheets/items/weapon.mjs index 4891b3c9..f7928b14 100644 --- a/module/applications/sheets/items/weapon.mjs +++ b/module/applications/sheets/items/weapon.mjs @@ -30,15 +30,6 @@ export default class WeaponSheet extends ItemAttachmentSheet(DHBaseItemSheet) { ...super.PARTS, }; - /** @override */ - static TABS = { - primary: { - tabs: [{ id: 'description' }, { id: 'actions' }, { id: 'settings' }, { id: 'attachments' }], - initial: 'description', - labelPrefix: 'DAGGERHEART.GENERAL.Tabs' - } - }; - /**@inheritdoc */ async _preparePartContext(partId, context) { await super._preparePartContext(partId, context);