scottyaslan commented on code in PR #8804:
URL: https://github.com/apache/nifi/pull/8804#discussion_r1607358288


##########
nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/pages/access-policies/ui/component-access-policies/component-access-policies.component.html:
##########
@@ -83,6 +55,37 @@
                                     </mat-form-field>
                                 </div>
                             </div>
+                            <div class="accent-color font-medium py-2">
+                                <div>
+                                    @switch (accessPolicyState.policyStatus) {
+                                        @case (PolicyStatus.NotFound) {
+                                            No policy for the specified 
resource.
+                                            @if 
(flowConfiguration.supportsConfigurableAuthorizer) {
+                                                <a 
(click)="createNewPolicy()">Create</a> a new policy.
+                                            }
+                                        }
+                                        @case (PolicyStatus.Inherited) {
+                                            @if 
(accessPolicyState.accessPolicy) {
+                                                <ng-container
+                                                    *ngTemplateOutlet="
+                                                        
getTemplateForInheritedPolicy(accessPolicyState.accessPolicy);
+                                                        context: {
+                                                            $implicit: 
accessPolicyState.accessPolicy,
+                                                            
supportsConfigurableAuthorizer:
+                                                                
flowConfiguration.supportsConfigurableAuthorizer
+                                                        }
+                                                    "></ng-container>
+                                            }
+                                        }
+                                        @case (PolicyStatus.Forbidden) {
+                                            Not authorized to access the 
policy for the specified resource.
+                                        }
+                                        @default {
+                                            Displaying all authorized 
Users/Groups
+                                        }

Review Comment:
   Ok. The issue is that when no text is displayed in the hint the browser 
collapses the element in the DOM. This makes the hint height dynamic. Maybe 
this UX is ok:
   
   ![Kapture 2024-05-20 at 18 30 
39](https://github.com/apache/nifi/assets/6797571/be05437f-5318-466d-b59d-d9af90e1a020)
   
   



-- 
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