From fa328e332e0f8ff96a0b0044be3f9eb4e8844001 Mon Sep 17 00:00:00 2001 From: "peng.jianhua" Date: Thu, 18 Jan 2018 14:25:54 +0800 Subject: [PATCH 1/1] KYLIN-3178 Delete table acl failed will cause the wabpage awalys shows loading --- webapp/app/js/controllers/acl.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/webapp/app/js/controllers/acl.js b/webapp/app/js/controllers/acl.js index 6f83d21af..442e284e5 100644 --- a/webapp/app/js/controllers/acl.js +++ b/webapp/app/js/controllers/acl.js @@ -73,6 +73,15 @@ KylinApp.controller('AclCtrl', function ($scope, AclService, TableModel,loadingR loadingRequest.hide(); loadTableAclList(type); SweetAlert.swal('Success!', 'Table acl drop is done successfully', 'success'); + },function (e) { + if (e.data && e.data.exception) { + var message = e.data.exception; + var msg = !!(message) ? message : 'Failed to take action.'; + SweetAlert.swal('Oops...', msg, 'error'); + } else { + SweetAlert.swal('Oops...', "Failed to take action.", 'error'); + } + loadingRequest.hide(); }) } }) -- 2.11.0.windows.1