From b8fcc537d2fb202e343850a0ef7a14d234ad0823 Mon Sep 17 00:00:00 2001 From: Rafael Ferreira da Silva Date: Wed, 2 Sep 2020 14:43:53 -0700 Subject: [PATCH] #173: adding custom legend labels for the task data table --- .../graph-sections/simulation-details.js | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/tools/wrench/dashboard/scripts/graph-sections/simulation-details.js b/tools/wrench/dashboard/scripts/graph-sections/simulation-details.js index ff36d793d7..ae52bdab7d 100644 --- a/tools/wrench/dashboard/scripts/graph-sections/simulation-details.js +++ b/tools/wrench/dashboard/scripts/graph-sections/simulation-details.js @@ -11,27 +11,27 @@ function populateWorkflowTaskDataTable(data, tableID = null, label = null) { const tdClass = "task-details-td"; let labels = label ? label : { - read: {display: true, label: 'Read Input'}, - compute: {display: true, label: 'Computation'}, - write: {display: true, label: 'Write Output'}, + read: {display: true, label: "Read Input"}, + compute: {display: true, label: "Computation"}, + write: {display: true, label: "Write Output"}, }; - let table_structure = ` + let tableContents = ` `; if (labels.read.display) { - table_structure += ''; + tableContents += ``; } if (labels.compute.display) { - table_structure += ''; + tableContents += ``; } if (labels.write.display) { - table_structure += ''; + tableContents += ``; } - table_structure += ` + tableContents += ` @@ -39,40 +39,40 @@ function populateWorkflowTaskDataTable(data, tableID = null, label = null) { `; if (labels.read.display) { - table_structure += ''; + tableContents += ``; } if (labels.compute.display) { - table_structure += ''; + tableContents += ``; } if (labels.write.display) { - table_structure += ''; + tableContents += ``; } - table_structure += ` + tableContents += ` `; if (labels.read.display) { - table_structure += ` + tableContents += ` `; } if (labels.compute.display) { - table_structure += ` + tableContents += ` `; } if (labels.write.display) { - table_structure += ` + tableContents += ` `; } - table_structure += ` + tableContents += ` @@ -81,7 +81,7 @@ function populateWorkflowTaskDataTable(data, tableID = null, label = null) {
' + labels.read.label + '` + labels.read.label + `' + labels.compute.label + '` + labels.compute.label + `' + labels.write.label + '` + labels.write.label + `
TaskIDStart Time End Time DurationStart Time End Time DurationStart Time End Time DurationTask Duration
`; - document.getElementById(tableId).innerHTML = table_structure; + document.getElementById(tableId).innerHTML = tableContents; d3.select(`#${tableId}`).style('display', 'block');