REFACTOR: remove unused method on setting sheet

FEAT: create BaseActorSetting
FIX: add type="button" to button on actor's sheet
This commit is contained in:
Joaquin Pereyra 2025-07-07 16:52:53 -03:00
parent 79a4c13a1b
commit 0189805dd6
20 changed files with 185 additions and 387 deletions

View file

@ -13,7 +13,8 @@
<div class='level-div'>
<h3 class='label'>
{{#if (or document.system.needsCharacterSetup document.system.levelData.canLevelUp)}}
<button
<button
type="button"
class="level-button glow" data-tooltip="{{#if document.system.needsCharacterSetup}}{{localize "DAGGERHEART.Sheets.PC.CharacterSetup"}}{{else}}{{localize "DAGGERHEART.ACTORS.Character.levelUp"}}{{/if}}"
data-action="levelManagement"
>

View file

@ -10,7 +10,7 @@
<a class="filter-button">
<i class="fa-solid fa-filter"></i>
</a>
<button class="btn-toggle-view" data-action="toggleLoadoutView" data-value="{{listView}}">
<button type="button" class="btn-toggle-view" data-action="toggleLoadoutView" data-value="{{listView}}">
<span class="{{ifThen listView 'list-active' ''}} list-icon">
<i class="fa-solid fa-bars"></i>
</span>