<commit_before>{{!
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
}}
{{#if dataIsLoaded}}
  {{#if securityEnabled}}
    <div>
      <p class="text-success">{{t admin.security.enabled}}
        {{#isAuthorized "CLUSTER.TOGGLE_KERBEROS"}}
          <button class="btn btn-padding btn-warning admin-disable-security-btn" {{bindAttr disabled="isKerberosButtonsDisabled"}} {{action notifySecurityOffPopup target="controller"}}>{{t admin.kerberos.button.disable}} </button>
          {{#unless isManualKerberos}}
            <button class="btn btn-success" id="regenerate-keytabs" {{bindAttr disabled="isKerberosButtonsDisabled"}} {{action regenerateKeytabs target="controller"}}>
              <i class="glyphicon glyphicon-repeat"></i> {{t admin.kerberos.button.regenerateKeytabs}}</button>
            {{#if App.isCredentialStorePersistent}}
              <button class="btn btn-primary" {{action showManageKDCCredentialsPopup target="controller"}}>{{t admin.kerberos.credentials.store.menu.label}}</button>
            {{/if}}
          {{/unless}}
          <br/>
          {{#unless isEditMode}}
            <a href="#" {{action makeConfigsEditable target="controller"}} class="pull-right">
              {{t common.edit}}
            </a>
          {{/unless}}
        {{/isAuthorized}}
      </p>
    </div>
    <div id="serviceConfig">
      {{view App.ServicesConfigView}}
    </div>
    {{#if isEditMode}}
      <div class="btn-area pull-right">
        <button id="cancel-kerberos-reconfigure-identities" {{action makeConfigsUneditable target="controller"}}
                class="btn btn-default">{{t common.cancel}}</button>
        <button id="save-kerberos-reconfigure-identities"
                class="btn btn-success" {{bindAttr disabled="isSaveButtonDisabled"}}
          {{action submit target="controller"}}>{{t common.save}}</button>
      </div>
    {{/if}}
  {{else}}
    <div>
      <p class="muted background-text">{{t admin.security.disabled}}
      {{#isAuthorized "CLUSTER.TOGGLE_KERBEROS"}}
        <a class="btn btn-padding btn-success admin-enable-security-btn" {{action checkAndStartKerberosWizard target="controller"}}>{{t admin.kerberos.button.enable}} </a>
        <br/>
      {{/isAuthorized}}
      </p>
    </div>
  {{/if}}
{{else}}
  {{view App.SpinnerView}}
{{/if}}<commit_msg>AMBARI-19197. Kerberos advanced tab. Page wasn't refreshed after save changes. Save button is disabled. (alexantonenko)<commit_after>{{!
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
}}
{{#if dataIsLoaded}}
  {{#if securityEnabled}}
    <div>
      <p class="text-success">{{t admin.security.enabled}}
        {{#isAuthorized "CLUSTER.TOGGLE_KERBEROS"}}
          <button class="btn btn-padding btn-warning admin-disable-security-btn" {{bindAttr disabled="isKerberosButtonsDisabled"}} {{action notifySecurityOffPopup target="controller"}}>{{t admin.kerberos.button.disable}} </button>
          {{#unless isManualKerberos}}
            <button class="btn btn-success" id="regenerate-keytabs" {{bindAttr disabled="isKerberosButtonsDisabled"}} {{action regenerateKeytabs target="controller"}}>
              <i class="glyphicon glyphicon-repeat"></i> {{t admin.kerberos.button.regenerateKeytabs}}</button>
            {{#if App.isCredentialStorePersistent}}
              <button class="btn btn-primary" {{action showManageKDCCredentialsPopup target="controller"}}>{{t admin.kerberos.credentials.store.menu.label}}</button>
            {{/if}}
          {{/unless}}
          <br/>
          {{#unless isEditMode}}
            <a href="#" {{action makeConfigsEditable target="controller"}} class="pull-right">
              {{t common.edit}}
            </a>
          {{/unless}}
        {{/isAuthorized}}
      </p>
    </div>
    <div id="serviceConfig">
      {{view App.ServicesConfigView}}
    </div>
    <div {{bindAttr class=":btn-area :pull-right 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"
              class="btn btn-success" {{bindAttr disabled="isSaveButtonDisabled"}}
        {{action submit target="controller"}}>{{t common.save}}</button>
    </div>
  {{else}}
    <div>
      <p class="muted background-text">{{t admin.security.disabled}}
      {{#isAuthorized "CLUSTER.TOGGLE_KERBEROS"}}
        <a class="btn btn-padding btn-success admin-enable-security-btn" {{action checkAndStartKerberosWizard target="controller"}}>{{t admin.kerberos.button.enable}} </a>
        <br/>
      {{/isAuthorized}}
      </p>
    </div>
  {{/if}}
{{else}}
  {{view App.SpinnerView}}
{{/if}}
{'fraction_non_alphanumeric': 0.1414957195929575, 'fraction_numerical': 0.0020998223227265385, 'mean_word_length': 3.4739884393063583, 'pattern_counts': {'":': 1, '<': 63, '<?xml version=': 0, '>': 63, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5037094', 'n_tokens_mistral': 1802, 'n_tokens_neox': 1759, 'n_words': 482}