fix: remove duplicate toggle button in table header
Keep only the toggle button in toolbar for better UX.
This commit is contained in:
parent
619fdc90af
commit
77ac3d1b18
1 changed files with 1 additions and 20 deletions
|
|
@ -277,26 +277,7 @@
|
||||||
</:col>
|
</:col>
|
||||||
<:col
|
<:col
|
||||||
:let={member}
|
:let={member}
|
||||||
label={
|
label={gettext("Membership Fee Status")}
|
||||||
~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>
|
|
||||||
"""
|
|
||||||
}
|
|
||||||
>
|
>
|
||||||
<%= if badge = MvWeb.MemberLive.Index.MembershipFeeStatus.format_cycle_status_badge(
|
<%= if badge = MvWeb.MemberLive.Index.MembershipFeeStatus.format_cycle_status_badge(
|
||||||
MvWeb.MemberLive.Index.MembershipFeeStatus.get_cycle_status_for_member(member, @show_current_cycle)
|
MvWeb.MemberLive.Index.MembershipFeeStatus.get_cycle_status_for_member(member, @show_current_cycle)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue