Skip to content

Commit

Permalink
Merge pull request #585 from ESIPFed/info-panel-change
Browse files Browse the repository at this point in the history
remove color column in workflow info panel
  • Loading branch information
srinijammula authored Jan 15, 2025
2 parents 579ef01 + 714bdbc commit c1f6b6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/static/js/gw.workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ GW.workflow = {

// render other columns and add them to priority order
for (const key of Object.keys(node)) {
if (!priorityOrder.includes(key)) {
if (!priorityOrder.includes(key) && key.toLowerCase() !== 'color') {
priorityOrder.push(key);
info_body += `<th scope="col">${key.charAt(0).toUpperCase() + key.slice(1)}</th>`;
}
Expand Down Expand Up @@ -156,14 +156,14 @@ GW.workflow = {
const headers = [];

for (const key of Object.keys(edge.source)) {
if (key === 'x' || key === 'y') {
if (key === 'x' || key === 'y' || key === 'color') {
continue;
}
headers.push(`Source ${key.charAt(0).toUpperCase() + key.slice(1)}`);
}

for (const key of Object.keys(edge.target)) {
if (key === 'x' || key === 'y') {
if (key === 'x' || key === 'y' || key === 'color') {
continue;
}
headers.push(`Target ${key.charAt(0).toUpperCase() + key.slice(1)}`);
Expand Down

0 comments on commit c1f6b6a

Please sign in to comment.