Skip to content

Commit

Permalink
Total tasks title in the stage page is incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
shahidki31 committed Nov 28, 2018
1 parent 2d89d10 commit bbd745a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,8 @@ $(document).ready(function () {
$("#accumulator-table").DataTable(accumulatorConf);

// building tasks table that uses server side functionality
var totalTasksToShow = responseBody.numCompleteTasks + responseBody.numActiveTasks;
var totalTasksToShow = responseBody.numCompleteTasks + responseBody.numActiveTasks +
responseBody.numKilledTasks + responseBody.numFailedTasks;
var taskTable = "#active-tasks-table";
var taskConf = {
"serverSide": true,
Expand Down Expand Up @@ -921,7 +922,7 @@ $(document).ready(function () {

// title number and toggle list
$("#summaryMetricsTitle").html("Summary Metrics for " + "<a href='#tasksTitle'>" + responseBody.numCompleteTasks + " Completed Tasks" + "</a>");
$("#tasksTitle").html("Task (" + totalTasksToShow + ")");
$("#tasksTitle").html("Tasks (" + totalTasksToShow + ")");

// hide or show the accumulate update table
if (accumulatorTable.length == 0) {
Expand Down

0 comments on commit bbd745a

Please sign in to comment.