Skip to content

Commit

Permalink
feat(pipelines): support customStatusIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
jenny-s51 committed Jun 3, 2024
1 parent 70dbe0d commit c390289
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,14 +287,13 @@ export const useDemoPipelineNodes = (
taskType: 'java',
taskTopic: 'Environment',
columnGroup: (TASK_STATUSES.length % STATUS_PER_ROW) + 1
// taskJobType: 'link'
};

if (!layout) {
const row = Math.ceil((TASK_STATUSES.length + 1) / STATUS_PER_ROW) - 1;
const columnWidth = COLUMN_WIDTH + (showIcons ? 15 : 0) + (showBadges ? 32 : 0) + (showContextMenu ? 20 : 0);
iconTask2.x = (showIcons ? 28 : 0) + 2 * columnWidth;
iconTask2.y = GRAPH_MARGIN_TOP + row * ROW_HEIGHT;
iconTask3.x = (showIcons ? 28 : 0) + 3 * columnWidth;
iconTask3.y = GRAPH_MARGIN_TOP + row * ROW_HEIGHT;
}
tasks.push(iconTask3);

Expand Down

0 comments on commit c390289

Please sign in to comment.