Update report count correctly
This commit is contained in:
parent
0e6e85825a
commit
96e14b2b5e
1 changed files with 4 additions and 1 deletions
|
|
@ -53,6 +53,9 @@ function renderReports(features) {
|
|||
});
|
||||
}
|
||||
report_table.reports = reports;
|
||||
|
||||
const report_count = document.getElementById("report-count");
|
||||
report_count.innerHTML = reports.length + " Reports Found";
|
||||
}
|
||||
function onLoad() {
|
||||
const map = document.querySelector("map-multipoint");
|
||||
|
|
@ -187,7 +190,7 @@ document.addEventListener('DOMContentLoaded', onLoad);
|
|||
<div class="card">
|
||||
<div class="card-header bg-primary text-white d-flex justify-content-between align-items-center">
|
||||
<h5 class="mb-0"><i class="fas fa-list me-2"></i>Reports Near You</h5>
|
||||
<span class="badge bg-light text-dark">15 Reports Found</span>
|
||||
<span class="badge bg-light text-dark" id="report-count">- Reports Found</span>
|
||||
</div>
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue