Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
barslmn committed Dec 21, 2024
1 parent a76d5c9 commit 7ad99df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions canvas/templates/canvas/components/create_report_button.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
}))
)
}"
hx-target="closest ul"
hx-swap="outerHTML"
>
Create report
Expand All @@ -27,4 +26,4 @@
class="fa-solid fa-ellipsis fa-fade"
></i>
</div>
</div>
</div>
4 changes: 3 additions & 1 deletion canvas/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,9 @@ def create_report(request):
"button": "true",
"chipsample": chipsample,
}
response = render(request, "canvas/partials/report_list.html", context=context)
response = render(
request, "canvas/components/create_report_button.html", context=context
)
response["HX-Trigger"] = f"triggerReportUpdate{chipsample_pk}"
return response

Expand Down

0 comments on commit 7ad99df

Please sign in to comment.