fix(badges): move Reports link to trusted+edit toolbar, add reprint count
Reports link moved out of the enable_mass_print gate into the main trusted+edit-mode toolbar, to the right of Templates — visible whenever staff are in edit mode regardless of mass-print config. Reports page header now shows reprint count in parentheses when > 0, e.g. "142 badges · 98 printed (7 reprints)". Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -492,6 +492,12 @@ async function handle_search_refresh(params: any) {
|
||||
Templates
|
||||
</a>
|
||||
{/if}
|
||||
<a
|
||||
href={`/events/${$events_slct?.event_id}/badges/reports`}
|
||||
class="btn btn-sm preset-tonal-surface border-surface-300-700 border">
|
||||
<TrendingUp size="1em" />
|
||||
Reports
|
||||
</a>
|
||||
|
||||
{#if badges_loc.current.enable_add_badge_btn ?? true}
|
||||
<button
|
||||
@@ -545,11 +551,6 @@ async function handle_search_refresh(params: any) {
|
||||
class="btn btn-tertiary">
|
||||
<ChartColumnBig size="1em" /> Badge Printing Stats
|
||||
</a>
|
||||
<a
|
||||
href={`/events/${$events_slct?.event_id}/badges/reports`}
|
||||
class="btn btn-tertiary">
|
||||
<TrendingUp size="1em" /> Badge Reports
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user