This commit is contained in:
WBHarry 2025-07-25 11:14:34 +02:00
parent e8343de4e4
commit 1bb6e74faa
2 changed files with 7 additions and 7 deletions

View file

@ -425,7 +425,7 @@ export default function DHApplicationMixin(Base) {
* Renders an embedded document. * Renders an embedded document.
* @type {ApplicationClickAction} * @type {ApplicationClickAction}
*/ */
static async #editDoc(_event, target) { static #editDoc(_event, target) {
const doc = getDocFromElement(target); const doc = getDocFromElement(target);
if (doc) return doc.sheet.render({ force: true }); if (doc) return doc.sheet.render({ force: true });
} }

View file

@ -42,7 +42,7 @@
<img class="image" src="{{document.system.characterGuide.suggestedPrimaryWeapon.img}}" /> <img class="image" src="{{document.system.characterGuide.suggestedPrimaryWeapon.img}}" />
<span>{{document.system.characterGuide.suggestedPrimaryWeapon.name}}</span> <span>{{document.system.characterGuide.suggestedPrimaryWeapon.name}}</span>
<div class="controls"> <div class="controls">
<a><i data-action="removeSuggestedItem" data-target="suggestedPrimaryWeapon" class="fa-solid fa-trash icon-button"></i></a> <a data-action="removeSuggestedItem" data-target="suggestedPrimaryWeapon"><i class="fa-solid fa-trash icon-button"></i></a>
</div> </div>
</div> </div>
{{/if}} {{/if}}
@ -57,7 +57,7 @@
<img class="image" src="{{document.system.characterGuide.suggestedSecondaryWeapon.img}}" /> <img class="image" src="{{document.system.characterGuide.suggestedSecondaryWeapon.img}}" />
<span>{{document.system.characterGuide.suggestedSecondaryWeapon.name}}</span> <span>{{document.system.characterGuide.suggestedSecondaryWeapon.name}}</span>
<div class="controls"> <div class="controls">
<a><i data-action="removeSuggestedItem" data-target="suggestedSecondaryWeapon" class="fa-solid fa-trash icon-button"></i></a> <a data-action="removeSuggestedItem" data-target="suggestedSecondaryWeapon"><i class="fa-solid fa-trash icon-button"></i></a>
</div> </div>
</div> </div>
{{/if}} {{/if}}
@ -72,7 +72,7 @@
<img class="image" src="{{document.system.characterGuide.suggestedArmor.img}}" /> <img class="image" src="{{document.system.characterGuide.suggestedArmor.img}}" />
<span>{{document.system.characterGuide.suggestedArmor.name}}</span> <span>{{document.system.characterGuide.suggestedArmor.name}}</span>
<div class="controls"> <div class="controls">
<a><i data-action="removeSuggestedItem" data-target="suggestedArmor" class="fa-solid fa-trash icon-button"></i></a> <a data-action="removeSuggestedItem" data-target="suggestedArmor"><i class="fa-solid fa-trash icon-button"></i></a>
</div> </div>
</div> </div>
{{/if}} {{/if}}
@ -91,7 +91,7 @@
<img class="image" src="{{this.img}}" /> <img class="image" src="{{this.img}}" />
<span>{{this.name}}</span> <span>{{this.name}}</span>
<div class="controls"> <div class="controls">
<a><i data-action="removeItemFromCollection" data-target="inventory.take" data-uuid="{{this.uuid}}" class="fa-solid fa-trash icon-button"></i></a> <a data-action="removeItemFromCollection" data-target="inventory.take" data-uuid="{{this.uuid}}"><i class="fa-solid fa-trash icon-button"></i></a>
</div> </div>
</div> </div>
{{/if}} {{/if}}
@ -108,7 +108,7 @@
<img class="image" src="{{this.img}}" /> <img class="image" src="{{this.img}}" />
<span>{{this.name}}</span> <span>{{this.name}}</span>
<div class="controls"> <div class="controls">
<a><i data-action="removeItemFromCollection" data-target="inventory.choiceA" data-uuid="{{this.uuid}}" class="fa-solid fa-trash icon-button"></i></a> <a data-action="removeItemFromCollection" data-target="inventory.choiceA" data-uuid="{{this.uuid}}"><i class="fa-solid fa-trash icon-button"></i></a>
</div> </div>
</div> </div>
{{/if}} {{/if}}
@ -125,7 +125,7 @@
<img class="image" src="{{this.img}}" /> <img class="image" src="{{this.img}}" />
<span>{{this.name}}</span> <span>{{this.name}}</span>
<div class="controls"> <div class="controls">
<a><i data-action="removeItemFromCollection" data-target="inventory.choiceB" data-uuid="{{this.uuid}}" class="fa-solid fa-trash icon-button"></i></a> <a data-action="removeItemFromCollection" data-target="inventory.choiceB" data-uuid="{{this.uuid}}"><i class="fa-solid fa-trash icon-button"></i></a>
</div> </div>
</div> </div>
{{/if}} {{/if}}