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

madhan pushed a commit to branch ranger-2.4
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/ranger-2.4 by this push:
     new 50ad9c19e RANGER-4155 : Structure of resource(UI) hierarchy in policy 
form not proper formatted for multiple values.
50ad9c19e is described below

commit 50ad9c19e62f5aa6b2888b17437aa6fb1e2c0a36
Author: Dhaval.Rajpara <[email protected]>
AuthorDate: Mon Mar 27 15:13:09 2023 +0530

    RANGER-4155 : Structure of resource(UI) hierarchy in policy form not proper 
formatted for multiple values.
    
    Signed-off-by: Nitin Galave <[email protected]>
    (cherry picked from commit cc67b665fea0bc31c29499991ae9940983c8c1fb)
---
 security-admin/src/main/webapp/scripts/modules/XAOverrides.js        | 2 +-
 security-admin/src/main/webapp/styles/xa.css                         | 5 +++++
 .../src/main/webapp/templates/policies/RangerPolicyForm_tmpl.html    | 2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/security-admin/src/main/webapp/scripts/modules/XAOverrides.js 
b/security-admin/src/main/webapp/scripts/modules/XAOverrides.js
index 2bc552b99..369b0f65a 100644
--- a/security-admin/src/main/webapp/scripts/modules/XAOverrides.js
+++ b/security-admin/src/main/webapp/scripts/modules/XAOverrides.js
@@ -782,7 +782,7 @@
                   recursiveSupportToggleDiv = '<div class="toggle-xa 
recursive-toggle '+recursiveTogglePosition+'"" data-js="recursive" 
style="height: 20px; width: 120px;"><div  class="toggle"></div></div>';
                                  
                                  return _.template(selectTemplate+'<input 
data-js="resource" type="text">'+
-                                                                       
excludeSupportToggleDiv+''+recursiveSupportToggleDiv);
+                                                                       '<div 
class="excludeRecursiveSupport">'+excludeSupportToggleDiv+''+recursiveSupportToggleDiv+'</div>');
                          },
                        });
          
diff --git a/security-admin/src/main/webapp/styles/xa.css 
b/security-admin/src/main/webapp/styles/xa.css
index 52f9128f8..f5544cca0 100644
--- a/security-admin/src/main/webapp/styles/xa.css
+++ b/security-admin/src/main/webapp/styles/xa.css
@@ -4720,6 +4720,7 @@ input.textFiledInputPadding:disabled {
 }
 .form-resources.policy-resources .form-control.rosource-boder {
   padding: 0px !important;
+  height: 100%;
 }
 .form-resources.policy-resources .sameLevelDropdown {
   margin-right: 31px !important;
@@ -4733,4 +4734,8 @@ input.textFiledInputPadding:disabled {
 }
 .wrap.position-relative.additional-resource{
   padding: 20px 20px 0px 20px !important;
+}
+.excludeRecursiveSupport {
+  position: absolute;
+  top: 30px;
 }
\ No newline at end of file
diff --git 
a/security-admin/src/main/webapp/templates/policies/RangerPolicyForm_tmpl.html 
b/security-admin/src/main/webapp/templates/policies/RangerPolicyForm_tmpl.html
index 864a399aa..5f6e99638 100644
--- 
a/security-admin/src/main/webapp/templates/policies/RangerPolicyForm_tmpl.html
+++ 
b/security-admin/src/main/webapp/templates/policies/RangerPolicyForm_tmpl.html
@@ -69,7 +69,7 @@ language governing permissions and limitations under the 
License. --}}
                </p>
                &nbsp;
                <div>
-                       <div data-customfields="policyResources" />
+                       <div class="policyResources" 
data-customfields="policyResources" />
                </div>
        </fieldset>
        <fieldset>

Reply via email to