rfellows commented on code in PR #11202:
URL: https://github.com/apache/nifi/pull/11202#discussion_r3221557959


##########
nifi-frontend/src/main/frontend/apps/nifi/src/app/ui/common/canvas/canvas.component.ts:
##########
@@ -2983,7 +2972,8 @@ export class CanvasComponent implements OnInit, 
AfterViewInit, OnDestroy {
                 id: p.entity.id,
                 type: ComponentType.Processor,
                 position: { x: p.entity.position.x, y: p.entity.position.y },
-                dimensions: { width: p.ui.dimensions.width, height: 
p.ui.dimensions.height }
+                dimensions: { width: p.ui.dimensions.width, height: 
p.ui.dimensions.height },
+                fillColor: p.entity.component?.style?.['background-color'] || 
undefined

Review Comment:
   should we gate this with `canRead` as we do when rendering color in the flow 
designer birdseye-view.service?



##########
nifi-frontend/src/main/frontend/apps/nifi/src/app/ui/common/canvas/canvas.component.ts:
##########
@@ -3034,7 +3024,8 @@ export class CanvasComponent implements OnInit, 
AfterViewInit, OnDestroy {
                 id: l.entity.id,
                 type: ComponentType.Label,
                 position: { x: l.entity.position.x, y: l.entity.position.y },
-                dimensions: { width: l.ui.dimensions.width, height: 
l.ui.dimensions.height }
+                dimensions: { width: l.ui.dimensions.width, height: 
l.ui.dimensions.height },
+                fillColor: l.entity.component?.style?.['background-color'] || 
undefined

Review Comment:
   should we gate this on `canRead` as well?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to