Repository: kylin Updated Branches: refs/heads/2.0-rc 9b0897e2f -> cfc7e365c
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/cfc7e365 Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/cfc7e365 Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/cfc7e365 Branch: refs/heads/2.0-rc Commit: cfc7e365ce2feeb126f50a0f2aec9ef37b4050a6 Parents: 9b0897e Author: jian <zhongj...@apache.org> Authored: Fri Jan 8 16:53:39 2016 +0800 Committer: jian <zhongj...@apache.org> Committed: Fri Jan 8 16:53:54 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/cfc7e365/webapp/app/js/controllers/cubeSchema.js ---------------------------------------------------------------------- diff --git a/webapp/app/js/controllers/cubeSchema.js b/webapp/app/js/controllers/cubeSchema.js index 80be8e2..d22acb9 100755 --- a/webapp/app/js/controllers/cubeSchema.js +++ b/webapp/app/js/controllers/cubeSchema.js @@ -112,7 +112,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/cfc7e365/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; }