kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhongj...@apache.org
Subject kylin git commit: KYLIN-1666 validate project before clone
Date Tue, 10 May 2016 02:46:46 GMT
Repository: kylin
Updated Branches:
  refs/heads/1.3.X [created] cf7681519


KYLIN-1666 validate 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/cf768151
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/cf768151
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/cf768151

Branch: refs/heads/1.3.X
Commit: cf7681519b96025e77ef9248476dcb553af7c584
Parents: 009ea90
Author: Jason <jiatuer@163.com>
Authored: Tue May 10 10:46:23 2016 +0800
Committer: Jason <jiatuer@163.com>
Committed: Tue May 10 10:46:45 2016 +0800

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


http://git-wip-us.apache.org/repos/asf/kylin/blob/cf768151/webapp/app/js/controllers/cubes.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/cubes.js b/webapp/app/js/controllers/cubes.js
index 859d2d8..86a3e06 100755
--- a/webapp/app/js/controllers/cubes.js
+++ b/webapp/app/js/controllers/cubes.js
@@ -450,6 +450,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


Mime
View raw message