From 7e8dc9121e899c641dbb3ea3a1a16af0eeb30c47 Mon Sep 17 00:00:00 2001 From: psitacus Date: Wed, 9 Jul 2025 00:39:40 -0600 Subject: [PATCH] make drier --- module/applications/sheets/items/armor.mjs | 2 +- module/applications/sheets/items/weapon.mjs | 2 +- .../tabs/tab-attachments.hbs} | 0 templates/sheets/items/weapon/attachments.hbs | 30 ------------------- 4 files changed, 2 insertions(+), 32 deletions(-) rename templates/sheets/{items/armor/attachments.hbs => global/tabs/tab-attachments.hbs} (100%) delete mode 100644 templates/sheets/items/weapon/attachments.hbs diff --git a/module/applications/sheets/items/armor.mjs b/module/applications/sheets/items/armor.mjs index 912f88c2..8af832c3 100644 --- a/module/applications/sheets/items/armor.mjs +++ b/module/applications/sheets/items/armor.mjs @@ -33,7 +33,7 @@ export default class ArmorSheet extends DHBaseItemSheet { scrollable: ['.settings'] }, attachments: { - template: 'systems/daggerheart/templates/sheets/items/armor/attachments.hbs', + template: 'systems/daggerheart/templates/sheets/global/tabs/tab-attachments.hbs', scrollable: ['.attachments'] } }; diff --git a/module/applications/sheets/items/weapon.mjs b/module/applications/sheets/items/weapon.mjs index d8ae35e0..a5ba1b7e 100644 --- a/module/applications/sheets/items/weapon.mjs +++ b/module/applications/sheets/items/weapon.mjs @@ -34,7 +34,7 @@ export default class WeaponSheet extends DHBaseItemSheet { scrollable: ['.settings'] }, attachments: { - template: 'systems/daggerheart/templates/sheets/items/weapon/attachments.hbs', + template: 'systems/daggerheart/templates/sheets/global/tabs/tab-attachments.hbs', scrollable: ['.attachments'] } }; diff --git a/templates/sheets/items/armor/attachments.hbs b/templates/sheets/global/tabs/tab-attachments.hbs similarity index 100% rename from templates/sheets/items/armor/attachments.hbs rename to templates/sheets/global/tabs/tab-attachments.hbs diff --git a/templates/sheets/items/weapon/attachments.hbs b/templates/sheets/items/weapon/attachments.hbs deleted file mode 100644 index 5b632d8b..00000000 --- a/templates/sheets/items/weapon/attachments.hbs +++ /dev/null @@ -1,30 +0,0 @@ -
-
- {{localize tabs.attachments.label}} - - {{#if attachedItems}} -
- {{#each attachedItems as |item|}} -
- {{item.name}} -
-
{{item.name}}
-
-
- -
-
- {{/each}} -
- {{/if}} - -
- - Drop items here to attach them -
-
-