소스 검색

AMBARI-13937. Oozie and hive db hostname should be non-editable for new databases (onechiporenko)

Oleg Nechiporenko 9 년 전
부모
커밋
e383cf9f9a
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      ambari-web/app/views/common/controls_view.js

+ 1 - 0
ambari-web/app/views/common/controls_view.js

@@ -431,6 +431,7 @@ App.ServiceConfigRadioButtons = Ember.View.extend(App.ServiceConfigCalculateId,
   didInsertElement: function () {
     // on page render, automatically populate JDBC URLs only for default database settings
     // so as to not lose the user's customizations on these fields
+    this.get('hostNameProperty').set('isEditable', !this.get('isNewDb'));
     if (['addServiceController', 'installerController'].contains(this.get('controller.wizardController.name')) && !App.StackService.find(this.get('serviceConfig.serviceName')).get('isInstalled')) {
       if (this.get('isNewDb') || this.get('dontUseHandleDbConnection').contains(this.get('serviceConfig.name'))) {
         this.onOptionsChange();