From 83f6c940dfbae1b70ef6cfa03662cbe7dfe64cf0 Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Mon, 9 Mar 2026 23:09:16 +0100 Subject: [PATCH] Fixed so that the new feature button in the character sheet can take you to the compendium browser (#1719) --- .../sheets/api/application-mixin.mjs | 3 +++ .../sheets/actors/character/features.hbs | 22 ++++++++++--------- .../partials/inventory-fieldset-items-V2.hbs | 2 +- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/module/applications/sheets/api/application-mixin.mjs b/module/applications/sheets/api/application-mixin.mjs index 449880fb..b18176ec 100644 --- a/module/applications/sheets/api/application-mixin.mjs +++ b/module/applications/sheets/api/application-mixin.mjs @@ -691,6 +691,9 @@ export default function DHApplicationMixin(Base) { case 'weapon': presets.folder = 'equipments.folders.weapons'; break; + case 'feature': + presets.folder = 'features'; + break; case 'domainCard': presets.folder = 'domains'; presets.filter = { diff --git a/templates/sheets/actors/character/features.hbs b/templates/sheets/actors/character/features.hbs index acabd37e..3e942468 100644 --- a/templates/sheets/actors/character/features.hbs +++ b/templates/sheets/actors/character/features.hbs @@ -4,19 +4,21 @@ {{#each document.system.sheetLists as |category|}} {{#if (eq category.type 'feature' )}} {{> 'daggerheart.inventory-items' - title=category.title - type='feature' - collection=category.values - canCreate=true - showActions=true + title=category.title + type='feature' + actorType='character' + collection=category.values + canCreate=true + showActions=true }} {{else if category.values}} {{> 'daggerheart.inventory-items' - title=category.title - type='feature' - collection=category.values - canCreate=false - showActions=true + title=category.title + type='feature' + actorType='character' + collection=category.values + canCreate=false + showActions=true }} {{/if}} diff --git a/templates/sheets/global/partials/inventory-fieldset-items-V2.hbs b/templates/sheets/global/partials/inventory-fieldset-items-V2.hbs index 0a3275d0..31c8f7f5 100644 --- a/templates/sheets/global/partials/inventory-fieldset-items-V2.hbs +++ b/templates/sheets/global/partials/inventory-fieldset-items-V2.hbs @@ -28,7 +28,7 @@ Parameters: {{localize title}} {{#if canCreate}} -