Преглед на файлове

AMBARI-17698. Button to restart services with stale configs is not functional.(xiwang)

Xi Wang преди 9 години
родител
ревизия
e7f225e546
променени са 2 файла, в които са добавени 5 реда и са изтрити 3 реда
  1. 4 2
      ambari-web/app/controllers/main/service.js
  2. 1 1
      ambari-web/app/utils/ajax/ajax.js

+ 4 - 2
ambari-web/app/controllers/main/service.js

@@ -333,7 +333,7 @@ App.MainServiceController = Em.ArrayController.extend({
         }
         }
       ]
       ]
     };
     };
-
+    
     if (isYARNQueueRefreshRequired) {
     if (isYARNQueueRefreshRequired) {
       batches = [
       batches = [
         {
         {
@@ -375,7 +375,9 @@ App.MainServiceController = Em.ArrayController.extend({
       App.ajax.send({
       App.ajax.send({
         name: 'request.post',
         name: 'request.post',
         sender: this,
         sender: this,
-        data: ajaxData,
+        data: {
+          data: ajaxData
+        },
         success: 'restartAllRequiredSuccessCallback'
         success: 'restartAllRequiredSuccessCallback'
       });
       });
     }
     }

+ 1 - 1
ambari-web/app/utils/ajax/ajax.js

@@ -2302,7 +2302,7 @@ var urls = {
   'request.post': {
   'request.post': {
     'real': "/clusters/{clusterName}/requests",
     'real': "/clusters/{clusterName}/requests",
     'mock': "",
     'mock': "",
-    'format': function () {
+    'format': function (data) {
       return {
       return {
         type: 'POST',
         type: 'POST',
         data: JSON.stringify(data.data)
         data: JSON.stringify(data.data)