Add ammo to the gear types, and get more design stuff for the AmmoTracker

This commit is contained in:
Oliver-Akins 2025-03-15 18:36:04 -06:00
parent 96e4d09e7b
commit 3ae7e9489a
9 changed files with 85 additions and 11 deletions

View file

@ -0,0 +1,23 @@
<div>
{{#if ammos}}
<ul>
{{#each ammos as | ammo |}}
<div class="ammo" data-item-id="{{ammo.uuid}}">
<span class="name">{{ ammo.name }}</span>
<span class="value">{{ ammo.system.quantity }}</span>
<button
type="button"
{{ disabled @root.canPin }}
data-action="pinAmmo"
>
Pin
</button>
</div>
{{/each}}
</ul>
{{else}}
<span class="placeholder">
{{ rc-i18n "RipCrypt.Apps.no-ammo" }}
</span>
{{/if}}
</div>