ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nc...@apache.org
Subject [11/12] ambari git commit: AMBARI-14955 Add error message when remove service failed. (ababiichuk)
Date Mon, 08 Feb 2016 14:03:31 GMT
AMBARI-14955 Add error message when remove service failed. (ababiichuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/f60472d5
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f60472d5
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f60472d5

Branch: refs/heads/branch-dev-patch-upgrade
Commit: f60472d5fa3705f31a0b024d4fb93c0d96048a10
Parents: 7051ef6
Author: ababiichuk <ababiichuk@hortonworks.com>
Authored: Mon Feb 8 14:39:58 2016 +0200
Committer: ababiichuk <ababiichuk@hortonworks.com>
Committed: Mon Feb 8 14:43:13 2016 +0200

----------------------------------------------------------------------
 ambari-web/app/controllers/main/service/item.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/f60472d5/ambari-web/app/controllers/main/service/item.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/item.js b/ambari-web/app/controllers/main/service/item.js
index 1aae7cd..0b8d5d7 100644
--- a/ambari-web/app/controllers/main/service/item.js
+++ b/ambari-web/app/controllers/main/service/item.js
@@ -1174,7 +1174,8 @@ App.MainServiceItemController = Em.Controller.extend(App.SupportClientConfigsDow
         serviceName : serviceToDeleteNow,
         servicesToDeleteNext: servicesToDeleteNext
       },
-      success : 'deleteServiceCallSuccessCallback'
+      success : 'deleteServiceCallSuccessCallback',
+      error: 'deleteServiceCallErrorCallback'
     });
   },
 
@@ -1184,6 +1185,10 @@ App.MainServiceItemController = Em.Controller.extend(App.SupportClientConfigsDow
     } else {
       window.location.reload();
     }
+  },
+
+  deleteServiceCallErrorCallback: function (jqXHR, ajaxOptions, error, opt) {
+    App.ajax.defaultErrorHandler(jqXHR, opt.url, opt.method, jqXHR.status);
   }
 
 });


Mime
View raw message