Repository: kylin
Updated Branches:
  refs/heads/master 8547011aa -> 5dbc083e8


KYLIN-3178 Delete table acl failed will cause the wabpage awalys shows loading

Signed-off-by: chenzhx <c...@apache.org>


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

Branch: refs/heads/master
Commit: 5dbc083e89a3874ad597ab385078f4a2414d9b49
Parents: 4f1f8a5
Author: peng.jianhua <peng.jian...@zte.com.cn>
Authored: Thu Jan 18 14:25:54 2018 +0800
Committer: chenzhx <c...@apache.org>
Committed: Wed Jan 24 14:44:53 2018 +0800

----------------------------------------------------------------------
 webapp/app/js/controllers/acl.js | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/5dbc083e/webapp/app/js/controllers/acl.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/acl.js b/webapp/app/js/controllers/acl.js
index 6f83d21..442e284 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();
         })
       }
     })

Reply via email to