fix: remove duplicate toggle button in table header

Keep only the toggle button in toolbar for better UX.
This commit is contained in:
Moritz 2025-12-26 21:41:22 +01:00
parent 619fdc90af
commit 77ac3d1b18

View file

@ -277,26 +277,7 @@
</:col>
<:col
:let={member}
label={
~H"""
<div class="flex items-center gap-2">
<span>{gettext("Membership Fee Status")}</span>
<button
type="button"
phx-click="toggle_cycle_view"
class="btn btn-xs btn-ghost"
title={
if(@show_current_cycle,
do: gettext("Switch to last completed cycle"),
else: gettext("Switch to current cycle")
)
}
>
<.icon name="hero-arrow-path" class="size-3" />
</button>
</div>
"""
}
label={gettext("Membership Fee Status")}
>
<%= if badge = MvWeb.MemberLive.Index.MembershipFeeStatus.format_cycle_status_badge(
MvWeb.MemberLive.Index.MembershipFeeStatus.get_cycle_status_for_member(member, @show_current_cycle)