Skip to content

Commit

Permalink
Fix issue where tooltip did not display current counts and always dis…
Browse files Browse the repository at this point in the history
…played 0
  • Loading branch information
zef committed Feb 1, 2025
1 parent 4f43ef0 commit 304f6f6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions install/cws-ui/deployments.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@
$("#stat-bar-" + name + " div.bar-failedToStart").css('width', statsPercent.fts + '%');
$("#stat-bar-" + name + " div.bar-incident").css('width', statsPercent.incident + '%');
//set the tooltip text of each bar
$("#stat-bar-" + name + " div.bar-pending").attr('data-original-title', statsCounts.pending + " Pending");
$("#stat-bar-" + name + " div.bar-disabled").attr('data-original-title', statsCounts.disabled + " Disabled");
$("#stat-bar-" + name + " div.bar-active").attr('data-original-title', statsCounts.active + " Running");
$("#stat-bar-" + name + " div.bar-completed").attr('data-original-title', statsCounts.completed + " Completed");
$("#stat-bar-" + name + " div.bar-error").attr('data-original-title', statsCounts.error + " Failed");
$("#stat-bar-" + name + " div.bar-failedToStart").attr('data-original-title', statsCounts.fts + " Failed to Start");
$("#stat-bar-" + name + " div.bar-incident").attr('data-original-title', statsCounts.incident + " Incidents");
$("#stat-bar-" + name + " div.bar-pending").tooltip().attr('data-original-title', statsCounts.pending + " Pending");
$("#stat-bar-" + name + " div.bar-disabled").tooltip().attr('data-original-title', statsCounts.disabled + " Disabled");
$("#stat-bar-" + name + " div.bar-active").tooltip().attr('data-original-title', statsCounts.active + " Running");
$("#stat-bar-" + name + " div.bar-completed").tooltip().attr('data-original-title', statsCounts.completed + " Completed");
$("#stat-bar-" + name + " div.bar-error").tooltip().attr('data-original-title', statsCounts.error + " Failed");
$("#stat-bar-" + name + " div.bar-failedToStart").tooltip().attr('data-original-title', statsCounts.fts + " Failed to Start");
$("#stat-bar-" + name + " div.bar-incident").tooltip().attr('data-original-title', statsCounts.incident + " Incidents");
}
//HANDLER FUNCTION FOR DELETING A PROCESS DEFINITION
Expand Down

0 comments on commit 304f6f6

Please sign in to comment.