[FIX] HORILLA VIEWS: Temporary filter not working when used with quick save filter

This commit is contained in:
Horilla
2024-11-18 13:50:20 +05:30
parent df02680551
commit df060fe579
2 changed files with 9 additions and 2 deletions

View File

@@ -12,10 +12,14 @@
hx-get="{{request.path}}?{{filter.urlencode}}"
hx-target="#{{view_id|safe}}" hx-swap="outerHTML"
>
<button class="oh-hover-btn" style="
<button
hx-get="{% url "last-applied-filter" %}?{{filter.urlencode}}"
hx-swap="none"
class="oh-hover-btn" style="
cursor: pointer;
border: solid 2px {{filter.color}};
color: {{filter.color}} !important;
border-radius:30px;
">
{{filter.title}}
</button>

View File

@@ -102,7 +102,10 @@
hx-get="{{request.path}}?{{filter.urlencode}}"
hx-target="#{{view_id|safe}}" hx-swap="outerHTML"
>
<button class="oh-hover-btn" style="
<button
hx-get="{% url "last-applied-filter" %}?{{filter.urlencode}}"
hx-swap="none"
class="oh-hover-btn" style="
cursor: pointer;
border: solid 2px {{filter.color}};
color: {{filter.color}} !important;