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


##########
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:
##########
@@ -23,37 +23,43 @@
     } @else {
         @if (policyComponentState$ | async; as policyComponentState) {
             @if (flowConfiguration$ | async; as flowConfiguration) {
-                <div class="component-access-policies flex flex-col h-full 
gap-y-2">
+                <div class="component-access-policies flex flex-col h-full">
                     <error-banner></error-banner>
-                    <div class="accent-color font-medium">
-                        <div class="mb-2">
-                            @switch (accessPolicyState.policyStatus) {
-                                @case (PolicyStatus.NotFound) {
-                                    No policy for the specified resource.
-                                    @if 
(flowConfiguration.supportsConfigurableAuthorizer) {
-                                        <a 
(click)="createNewPolicy()">Create</a> a new policy.
+                    @if (
+                        accessPolicyState.policyStatus === 
PolicyStatus.NotFound ||
+                        accessPolicyState.policyStatus === 
PolicyStatus.Inherited ||
+                        accessPolicyState.policyStatus === 
PolicyStatus.Forbidden
+                    ) {
+                        <div class="accent-color font-medium pb-3">
+                            <div>
+                                @switch (accessPolicyState.policyStatus) {
+                                    @case (PolicyStatus.NotFound) {
+                                        No policy for the specified resource.

Review Comment:
   Good idea!



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