account page: fixed platform reordering bugs
This commit is contained in:
@@ -57,11 +57,6 @@
|
||||
border-b-[2px]
|
||||
border-sidebar-border
|
||||
"
|
||||
|
||||
hx-trigger="{{printf "sse:accounts_%d_platforms" $acctID}}"
|
||||
hx-get="{{printf "/ui/accounts/%d" $acctID}}"
|
||||
hx-select="#shops-section"
|
||||
hx-swap="morph"
|
||||
>
|
||||
<details class="flex flex-col items-stretch" open>
|
||||
<summary class="list-none cursor-pointer self-center">
|
||||
@@ -70,7 +65,7 @@
|
||||
</h2>
|
||||
</summary>
|
||||
|
||||
<ul class="list-none">
|
||||
<ul class="list-none" hx-swap="morph">
|
||||
{{- range $i, $platform := .Accounts.GetOrderOfPlatformsOnAccountPage $acctID }}
|
||||
{{ component (printf "/accounts/%d/shops/list-items/%s" $acctID $platform) "OrderIndex" $i }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user