Reports: Fix export (#6357)

Regression from the translation PRs, in which the proper button ID was replaced. Fixes #6356.
This commit is contained in:
d11n 2024-11-04 11:50:15 +01:00 committed by GitHub
parent 8a5a160645
commit 225264a283
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@
</h2>
<div>
<a cheat-mode="true" class="btn btn-outline-info text-nowrap" asp-action="StoreReports" asp-route-fakeData="true" asp-route-viewName="@Model.Request?.ViewName">Create fake data</a>
<button id="page-primary" class="btn btn-primary text-nowrap" type="button">Export</button>
<button id="page-primary" class="btn btn-primary text-nowrap" type="button" data-action="exportCSV">Export</button>
</div>
</div>
<div class="d-flex flex-column flex-sm-row align-items-center gap-3 mb-l">

View File

@ -99,7 +99,7 @@ document.addEventListener("DOMContentLoaded", () => {
fetchStoreReports();
});
delegate("click", "#exportCSV", downloadCSV);
delegate("click", "[data-action='exportCSV']", downloadCSV);
const $viewNameToggle = document.getElementById("ViewNameToggle")
delegate("click", ".available-view", function (e) {