Skip to content

Commit

Permalink
Fixing Group sheets unable to open
Browse files Browse the repository at this point in the history
  • Loading branch information
Grégory Soupé committed Feb 5, 2024
1 parent a6f4174 commit c088cff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion modules/applications/actors/WFRP3eGroupSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default class WFRP3eGroupSheet extends ActorSheet
{
const segmentContainer = $(event.currentTarget).siblings(".ability-track-editor-segment-container");
const newSegment = segmentContainer.append(
await renderTemplate("systems/wfrp3e/templates/applications/partials/ability-track-editor-segment.hbs", {
await renderTemplate("systems/wfrp3e/templates/partials/ability-track-editor-segment.hbs", {
value: {
content: segmentContainer.children().length,
trigger: false
Expand Down
17 changes: 3 additions & 14 deletions templates/applications/actors/group-sheet.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

<div class="ability-track-editor-segment-container">
{{#each actor.system.specialAbilities.0.values}}
{{>systems/wfrp3e/templates/applications/partials/ability-track-editor-segment.hbs
{{>systems/wfrp3e/templates/partials/ability-track-editor-segment.hbs
value=this
index=@index
specialAbilityIndex=0}}
Expand Down Expand Up @@ -146,7 +146,7 @@

<div class="ability-track-editor-segment-container">
{{#each actor.system.specialAbilities.1.values}}
{{>systems/wfrp3e/templates/applications/partials/ability-track-editor-segment.hbs
{{>systems/wfrp3e/templates/partials/ability-track-editor-segment.hbs
value=this
index=@index
specialAbilityIndex=1}}
Expand Down Expand Up @@ -181,18 +181,7 @@
{{#if (lookup @root.items.talents ty)}}
<div class="talent-container tab {{ty}} item-container" data-group="talents" data-tab="{{ty}}">
{{#each (lookup @root.items.talents ty) as |talent ta|}}
<div>
{{>systems/wfrp3e/templates/partials/item-talent-card.hbs talent=talent}}

<select class="sheet-form-select item-input talent-card-socket-select"
data-item-id="{{talent._id}}"
data-path="system.talentSocket">
{{selectOptions
(lookup @root.talentSocketsByType talent.system.type)
selected=talent.system.talentSocket
blank=(localize "TALENT.NoSocket")}}
</select>
</div>
{{>systems/wfrp3e/templates/partials/item-talent-card.hbs talent=talent}}
{{/each}}
</div>
{{/if}}
Expand Down

0 comments on commit c088cff

Please sign in to comment.