kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhongj...@apache.org
Subject incubator-kylin git commit: KYLIN-966, only validate when add new cube
Date Thu, 22 Oct 2015 10:29:46 GMT
Repository: incubator-kylin
Updated Branches:
  refs/heads/2.x-staging aeac6337b -> 7ad1c6152


KYLIN-966, only validate when add new cube


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

Branch: refs/heads/2.x-staging
Commit: 7ad1c61525587f61c6c31df090cad6ae54939957
Parents: aeac633
Author: jiazhong <jiazhong@ebay.com>
Authored: Thu Oct 22 18:29:23 2015 +0800
Committer: jiazhong <jiazhong@ebay.com>
Committed: Thu Oct 22 18:29:23 2015 +0800

----------------------------------------------------------------------
 webapp/app/js/controllers/cubeSchema.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/7ad1c615/webapp/app/js/controllers/cubeSchema.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/cubeSchema.js b/webapp/app/js/controllers/cubeSchema.js
index 6d215ce..3501e6d 100755
--- a/webapp/app/js/controllers/cubeSchema.js
+++ b/webapp/app/js/controllers/cubeSchema.js
@@ -204,7 +204,7 @@ KylinApp.controller('CubeSchemaCtrl', function ($scope, QueryService,
UserServic
     };
 
   $scope.check_cube_info = function(){
-    if(($scope.state.mode === "edit") &&($scope.allCubes.indexOf($scope.cubeMetaFrame.name.toUpperCase())
>= 0)){
+    if(($scope.state.mode === "edit") &&$scope.cubeMode=="addNewCube"&&($scope.allCubes.indexOf($scope.cubeMetaFrame.name.toUpperCase())
>= 0)){
       SweetAlert.swal('Oops...', "The cube named [" + $scope.cubeMetaFrame.name.toUpperCase()
+ "] already exists", 'warning');
       return false;
     }


Mime
View raw message