mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-23 10:59:54 +02:00
Add drag-and-drop sorting functionality to Loadout and Vault sections by reusing the exact pattern already implemented for Loot items: - Add `data-item-id` and `draggable="true"` attributes to domain card template (domain-card-item.hbs) following inventory-item-V2.hbs pattern - Sort domain cards by Foundry's `sort` property in the domainCards getter (character.mjs) following base-actor.mjs pattern for inventory This enables users to reorder domain cards by dragging, with order persistence across page reloads, just like Loot already supports. Fixes: Sorting works for loot, but not the Loadout Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| resource-section | ||
| action-item.hbs | ||
| domain-card-item.hbs | ||
| feature-section-item.hbs | ||
| gold.hbs | ||
| inventory-fieldset-items-V2.hbs | ||
| inventory-item-compact.hbs | ||
| inventory-item-V2.hbs | ||
| inventory-item.hbs | ||
| item-resource.hbs | ||
| item-tags.hbs | ||
| resource-bar.hbs | ||