Repository: kylin Updated Branches: refs/heads/1.3.x 009ea90da -> 404fe1ef9
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 <jiat...@163.com> Authored: Tue May 10 10:46:23 2016 +0800 Committer: Jason <jiat...@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