mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 07:36:26 +01:00
Fixed domainCard cardlist rendering
This commit is contained in:
parent
45dee57335
commit
1cb4a49a46
2 changed files with 15 additions and 13 deletions
|
|
@ -37,15 +37,17 @@
|
|||
{{/unless}}
|
||||
|
||||
</ul>
|
||||
<ul class="card-list">
|
||||
{{#each document.items as |item|}}
|
||||
{{#if (eq item.type ../type)}}
|
||||
{{#if (eq item.type 'domainCard')}}
|
||||
{{#unless (eq ../cardView 'list')}}
|
||||
{{> 'systems/daggerheart/templates/sheets/global/partials/domain-card-item.hbs' item=item type=../type}}
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
{{#if (and (eq cardView 'card') (eq type 'domainCard'))}}
|
||||
<ul class="card-list">
|
||||
{{#if isVault}}
|
||||
{{#each document.system.domainCards.vault as |card|}}
|
||||
{{> 'systems/daggerheart/templates/sheets/global/partials/domain-card-item.hbs' item=card type=../type}}
|
||||
{{/each}}
|
||||
{{else}}
|
||||
{{#each document.system.domainCards.loadout as |card|}}
|
||||
{{> 'systems/daggerheart/templates/sheets/global/partials/domain-card-item.hbs' item=card type=../type}}
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</ul>
|
||||
{{/if}}
|
||||
</fieldset>
|
||||
Loading…
Add table
Add a link
Reference in a new issue