瀏覽代碼

AMBARI-5568. Security wizard freezes on the last step. (jaimin via srimanth)

Srimanth Gunturi 11 年之前
父節點
當前提交
ed6aaaf73e
共有 1 個文件被更改,包括 13 次插入0 次删除
  1. 13 0
      ambari-web/app/controllers/main/admin/security/add/step4.js

+ 13 - 0
ambari-web/app/controllers/main/admin/security/add/step4.js

@@ -382,6 +382,19 @@ App.MainAdminSecurityAddStep4Controller = App.MainAdminSecurityProgressControlle
     return true;
   },
 
+  deleteComponents: function(componentName, hostName) {
+    App.ajax.send({
+      name: 'admin.delete_component',
+      sender: this,
+      data: {
+        componentName: componentName,
+        hostName: hostName
+      },
+      success: 'onDeleteComplete',
+      error: 'onDeleteError'
+    });
+  },
+
   onDeleteComplete: function () {
     var deleteAtsCommand = this.get('commands').findProperty('name', 'DELETE_ATS');
     console.warn('APP_TIMELINE_SERVER doesn\'t support security mode. It has been removed from YARN service ');