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

atkach pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 508769f  AMBARI-23209 Kerberos 'Edit' Properties not conforming to the 
new style
508769f is described below

commit 508769f5cbfe67842396d2a0761eeb9a4fa8585a
Author: Andrii Tkach <[email protected]>
AuthorDate: Mon Mar 12 19:30:45 2018 +0200

    AMBARI-23209 Kerberos 'Edit' Properties not conforming to the new style
---
 ambari-web/app/templates/main/admin/kerberos.hbs | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/ambari-web/app/templates/main/admin/kerberos.hbs 
b/ambari-web/app/templates/main/admin/kerberos.hbs
index 2b41122..0a0b330 100644
--- a/ambari-web/app/templates/main/admin/kerberos.hbs
+++ b/ambari-web/app/templates/main/admin/kerberos.hbs
@@ -18,7 +18,7 @@
 {{#if dataIsLoaded}}
   {{#if securityEnabled}}
     <div>
-      <p class="text-success">{{t admin.security.enabled}}
+        <span class="text-success">{{t admin.security.enabled}}</span>
         {{#isAuthorized "CLUSTER.TOGGLE_KERBEROS"}}
             {{#if App.supports.enableToggleKerberos}}
               <button class="btn btn-padding btn-warning 
admin-disable-security-btn" {{bindAttr disabled="isKerberosButtonsDisabled"}} 
{{action notifySecurityOffPopup target="controller"}}>{{t 
admin.kerberos.button.disable}} </button>
@@ -30,19 +30,17 @@
                 {{/if}}
               {{/unless}}
               <br/>
-              {{#unless isEditMode}}
-                <a href="#" {{action makeConfigsEditable target="controller"}} 
class="pull-right">
-                  {{t common.edit}}
-                </a>
-              {{/unless}}
+              <button href="#" {{action makeConfigsEditable 
target="controller"}}
+                {{bindAttr class="controller.isEditMode:hidden :btn 
:btn-default :pull-right"}}>
+                {{t common.edit}}
+              </button>
             {{/if}}
         {{/isAuthorized}}
-      </p>
     </div>
     <div id="serviceConfig">
       {{view App.ServicesConfigView}}
     </div>
-    <div {{bindAttr class=":btn-area :pull-right isEditMode::hidden"}}>
+    <div {{bindAttr class=":btn-area :pull-right 
controller.isEditMode::hidden"}}>
       <button id="cancel-kerberos-reconfigure-identities" {{action 
makeConfigsUneditable target="controller"}}
               class="btn btn-default">{{t common.cancel}}</button>
       <button id="save-kerberos-reconfigure-identities"

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to