Skip to content

Commit

Permalink
Fixes issue with missing instance statistics tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrodjpl committed Jan 23, 2025
1 parent 6bfba33 commit 3ab24e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install/cws-ui/deployments.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -203,19 +203,19 @@
$("#stat-bar-" + name + " div.bar-failedToStart").attr('data-bs-title', statsCounts.fts + " Failed to Start");
$("#stat-bar-" + name + " div.bar-incident").attr('data-bs-title', statsCounts.incident + " Incidents");
// Update the tooltips
// Update/initialize the tooltips
document.querySelectorAll('.progress-bar[data-bs-toggle="tooltip"]').forEach(el => {
const tooltipInstance = bootstrap.Tooltip.getInstance(el);
if (tooltipInstance) {
if (tooltipInstance._config) {
tooltipInstance._config.title = el.dataset.bsTitle;
}
tooltipInstance.update();
} else {
new bootstrap.Tooltip(el);
}
});
}
//HANDLER FUNCTION FOR DELETING A PROCESS DEFINITION
Expand Down

0 comments on commit 3ab24e5

Please sign in to comment.