This is an automated email from the ASF dual-hosted git repository.

mcgilman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new 0672bf3954 [NIFI-13091] only show selected relationships in read only 
connection details dialog (#8741)
0672bf3954 is described below

commit 0672bf395446496475b4a58defeff4c4f2ca9b2b
Author: Scott Aslan <scottyas...@users.noreply.github.com>
AuthorDate: Fri May 3 15:56:19 2024 -0400

    [NIFI-13091] only show selected relationships in read only connection 
details dialog (#8741)
    
    This closes #8741
---
 .../source-processor.component.html                | 28 ++++++++++++----------
 1 file changed, 15 insertions(+), 13 deletions(-)

diff --git 
a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/pages/flow-designer/ui/canvas/items/connection/source/source-processor/source-processor.component.html
 
b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/pages/flow-designer/ui/canvas/items/connection/source/source-processor/source-processor.component.html
index 8fbfc77a83..191e1e1860 100644
--- 
a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/pages/flow-designer/ui/canvas/items/connection/source/source-processor/source-processor.component.html
+++ 
b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/pages/flow-designer/ui/canvas/items/connection/source/source-processor/source-processor.component.html
@@ -28,20 +28,22 @@
         <div>Relationships</div>
         <div class="flex flex-col gap-y-3">
             @for (item of relationshipItems; track item; let i = $index) {
-                <div class="flex flex-col gap-y-1.5">
-                    <div class="flex items-center gap-x-2">
-                        <mat-checkbox
-                            color="primary"
-                            [(ngModel)]="item.selected"
-                            name="selected-{{ i }}"
-                            (change)="handleChanged()"
-                            [disabled]="isDisabled">
-                            <span [class.surface-color]="!item.available" 
[class.unset]="!item.available">{{
-                                item.relationshipName
-                            }}</span>
-                        </mat-checkbox>
+                @if (isDisabled && item.selected || !isDisabled) {
+                    <div class="flex flex-col gap-y-1.5">
+                        <div class="flex items-center gap-x-2">
+                            <mat-checkbox
+                                color="primary"
+                                [(ngModel)]="item.selected"
+                                name="selected-{{ i }}"
+                                (change)="handleChanged()"
+                                [disabled]="isDisabled">
+                                <span [class.surface-color]="!item.available" 
[class.unset]="!item.available">{{
+                                    item.relationshipName
+                                }}</span>
+                            </mat-checkbox>
+                        </div>
                     </div>
-                </div>
+                }
             }
         </div>
     </div>

Reply via email to