mirror of https://github.com/apache/nifi.git
[NIFI-13483] update active thread count colors for PG and RPG (#9027)
* [NIFI-13483] update active thread count colors for PG and RPG * address review feedback This closes #9027
This commit is contained in:
parent
fd6e62bdd2
commit
229364fc31
|
@ -1428,6 +1428,16 @@ export class CanvasUtils {
|
||||||
return activeThreads;
|
return activeThreads;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.attr('class', function () {
|
||||||
|
switch (d.type) {
|
||||||
|
case ComponentType.Processor:
|
||||||
|
case ComponentType.InputPort:
|
||||||
|
case ComponentType.OutputPort:
|
||||||
|
return `active-thread-count accent-color`;
|
||||||
|
default:
|
||||||
|
return `active-thread-count`;
|
||||||
|
}
|
||||||
|
})
|
||||||
.style('display', 'block')
|
.style('display', 'block')
|
||||||
.each(function (this: any) {
|
.each(function (this: any) {
|
||||||
const activeThreadCountText = d3.select(this);
|
const activeThreadCountText = d3.select(this);
|
||||||
|
@ -1452,10 +1462,17 @@ export class CanvasUtils {
|
||||||
return d.dimensions.width - bBox.width - 20;
|
return d.dimensions.width - bBox.width - 20;
|
||||||
})
|
})
|
||||||
.attr('class', function () {
|
.attr('class', function () {
|
||||||
if (terminatedThreads > 0) {
|
switch (d.type) {
|
||||||
return `active-thread-count-icon warn-color-darker`;
|
case ComponentType.Processor:
|
||||||
} else {
|
case ComponentType.InputPort:
|
||||||
return `active-thread-count-icon primary-color`;
|
case ComponentType.OutputPort:
|
||||||
|
if (terminatedThreads > 0) {
|
||||||
|
return `active-thread-count-icon warn-color-darker`;
|
||||||
|
} else {
|
||||||
|
return `active-thread-count-icon primary-color`;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
return `active-thread-count-icon`;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.style('display', 'block')
|
.style('display', 'block')
|
||||||
|
|
|
@ -194,10 +194,6 @@
|
||||||
fill: $material-theme-warn-palette-darker;
|
fill: $material-theme-warn-palette-darker;
|
||||||
}
|
}
|
||||||
|
|
||||||
text.active-thread-count {
|
|
||||||
fill: $material-theme-accent-palette-default;
|
|
||||||
}
|
|
||||||
|
|
||||||
text.component-comments {
|
text.component-comments {
|
||||||
fill: $material-theme-primary-palette-default;
|
fill: $material-theme-primary-palette-default;
|
||||||
stroke: $alternate-surface;
|
stroke: $alternate-surface;
|
||||||
|
|
Loading…
Reference in New Issue