Skip to content

Commit

Permalink
fix(3247): virtual job icon is not used when the graph redraw (#1275)
Browse files Browse the repository at this point in the history
  • Loading branch information
y-oksaku authored Dec 4, 2024
1 parent ab42438 commit 15f49be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/workflow-graph-d3/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default Component.extend({
if (n) {
const txt = n.select('text');

txt.text(icon(node.status));
txt.text(icon(node.status, node.virtual));
n.attr(
'class',
`graph-node${
Expand Down
2 changes: 1 addition & 1 deletion app/utils/pipeline/graph/d3-graph-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const STATUS_MAP = {
* @return {String} Unicode character that maps to an icon in screwdriver icon font
*/
export function icon(status, isVirtual) {
if (isVirtual && (!status || ['SUCCESS', 'WARNING', 'CREATED'])) {
if (isVirtual) {
return STATUS_MAP.VIRTUAL.icon;
}

Expand Down

0 comments on commit 15f49be

Please sign in to comment.