Merge pull request 'Auto-commit local changes before build (2026-01-03 13:40:56)' (#19) from v20260103-06-reports-delete-button-fix into main
Reviewed-on: #19
This commit is contained in:
commit
733b64b8b0
@ -1 +1 @@
|
|||||||
v20260103-05-reports-date-import-fix
|
v20260103-06-reports-delete-button-fix
|
||||||
|
|||||||
@ -387,7 +387,7 @@
|
|||||||
openRawModal(id);
|
openRawModal(id);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
body.querySelectorAll('.rep-delete-btn').forEach(function (btn) {
|
body.querySelectorAll('.rep-delete-btn').forEach(function (btn) {
|
||||||
btn.addEventListener('click', function () {
|
btn.addEventListener('click', function () {
|
||||||
@ -395,6 +395,8 @@
|
|||||||
deleteReport(id, btn);
|
deleteReport(id, btn);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function loadReports() {
|
function loadReports() {
|
||||||
setTableLoading('Loading…');
|
setTableLoading('Loading…');
|
||||||
fetch('/api/reports', { credentials: 'same-origin' })
|
fetch('/api/reports', { credentials: 'same-origin' })
|
||||||
|
|||||||
@ -35,6 +35,14 @@
|
|||||||
- Fixed a crash on the Reports page caused by missing datetime imports.
|
- Fixed a crash on the Reports page caused by missing datetime imports.
|
||||||
- Added the required `date` and `timedelta` imports to prevent a NameError when determining the default report period.
|
- Added the required `date` and `timedelta` imports to prevent a NameError when determining the default report period.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## v20260103-06-reports-delete-button-fix
|
||||||
|
|
||||||
|
- Fixed an issue where the Delete button on the Reports page did not perform any action.
|
||||||
|
- Resolved a JavaScript block/brace error that prevented the delete handler from executing.
|
||||||
|
- Ensured the DELETE API call is correctly triggered and the reports list is refreshed after deletion.
|
||||||
|
- Restored correct CSS classes for the server-rendered Delete button to ensure proper binding.
|
||||||
|
|
||||||
================================================================================================================================================
|
================================================================================================================================================
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user