Repository: kylin Updated Branches: refs/heads/2.x-staging 73b98e895 -> 4eb0d293a
KYLIN-1289 UI,allow switch between all wizard when edit cube and model Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/4eb0d293 Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/4eb0d293 Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/4eb0d293 Branch: refs/heads/2.x-staging Commit: 4eb0d293a64d3b2cdfd3dc63941d7e4f94ce264b Parents: 73b98e8 Author: jian <zhongj...@apache.org> Authored: Fri Jan 8 16:54:49 2016 +0800 Committer: jian <zhongj...@apache.org> Committed: Fri Jan 8 16:54:49 2016 +0800 ---------------------------------------------------------------------- webapp/app/js/controllers/cubeSchema.js | 3 ++- webapp/app/js/controllers/modelSchema.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/4eb0d293/webapp/app/js/controllers/cubeSchema.js ---------------------------------------------------------------------- diff --git a/webapp/app/js/controllers/cubeSchema.js b/webapp/app/js/controllers/cubeSchema.js index 936add0..98ced3b 100755 --- a/webapp/app/js/controllers/cubeSchema.js +++ b/webapp/app/js/controllers/cubeSchema.js @@ -111,7 +111,8 @@ KylinApp.controller('CubeSchemaCtrl', function ($scope, QueryService, UserServic }; $scope.goToStep = function(stepIndex){ - if($scope.state.mode=="edit"){ + console.log($scope.cubeMode); + if($scope.cubeMode == "addNewCube"){ if(stepIndex+1>=$scope.curStep.step){ return; } http://git-wip-us.apache.org/repos/asf/kylin/blob/4eb0d293/webapp/app/js/controllers/modelSchema.js ---------------------------------------------------------------------- diff --git a/webapp/app/js/controllers/modelSchema.js b/webapp/app/js/controllers/modelSchema.js index f1d2684..3c66609 100644 --- a/webapp/app/js/controllers/modelSchema.js +++ b/webapp/app/js/controllers/modelSchema.js @@ -271,7 +271,7 @@ KylinApp.controller('ModelSchemaCtrl', function ($scope, QueryService, UserServi $scope.goToStep = function (stepIndex) { - if ($scope.state.mode == "edit") { + if ($scope.modelMode == "addNewModel") { if (stepIndex + 1 >= $scope.curStep.step) { return; }