Repository: kylin
Updated Branches:
  refs/heads/yang-m1 927a23859 -> a0cbda79d


minor validate target project before clone


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

Branch: refs/heads/yang-m1
Commit: a0cbda79d88ff6ef94caf19483c1468b99bfe73c
Parents: 927a238
Author: Jason <jiat...@163.com>
Authored: Mon May 9 21:05:19 2016 +0800
Committer: Jason <jiat...@163.com>
Committed: Mon May 9 21:05:19 2016 +0800

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


http://git-wip-us.apache.org/repos/asf/kylin/blob/a0cbda79/webapp/app/js/controllers/cubes.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/cubes.js 
b/webapp/app/js/controllers/cubes.js
index f7b25e5..c103e54 100644
--- a/webapp/app/js/controllers/cubes.js
+++ b/webapp/app/js/controllers/cubes.js
@@ -507,6 +507,11 @@ var cubeCloneCtrl = function ($scope, $modalInstance, 
CubeService, MessageServic
 
   $scope.cloneCube = function(){
 
+    if(!$scope.targetObj.targetProject){
+      SweetAlert.swal('Oops...', "Please select target project.", 'info');
+      return;
+    }
+
     $scope.cubeRequest = {
       cubeName:$scope.targetObj.cubeName,
       project:$scope.targetObj.targetProject

Reply via email to