Repository: kylin
Updated Branches:
  refs/heads/master 9e2572a30 -> ecc57ee63


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

Branch: refs/heads/master
Commit: ecc57ee6313408e7a41801b270d8567b44ab121b
Parents: 9e2572a
Author: Jason <jiat...@163.com>
Authored: Tue May 10 10:40:03 2016 +0800
Committer: Jason <jiat...@163.com>
Committed: Tue May 10 10:40:03 2016 +0800

----------------------------------------------------------------------
 webapp/app/js/controllers/cubes.js  | 5 +++++
 webapp/app/js/controllers/models.js | 5 +++++
 2 files changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/ecc57ee6/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

http://git-wip-us.apache.org/repos/asf/kylin/blob/ecc57ee6/webapp/app/js/controllers/models.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/models.js 
b/webapp/app/js/controllers/models.js
index 0a2c31f..cbf063c 100644
--- a/webapp/app/js/controllers/models.js
+++ b/webapp/app/js/controllers/models.js
@@ -178,6 +178,11 @@ var modelCloneCtrl = function ($scope, $modalInstance, 
CubeService, MessageServi
 
   $scope.cloneModel = function(){
 
+    if(!$scope.targetObj.targetProject){
+      SweetAlert.swal('Oops...', "Please select target project.", 'info');
+      return;
+    }
+
     $scope.modelRequest = {
       modelName:$scope.targetObj.modelName,
       project:$scope.targetObj.targetProject

Reply via email to