kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhongj...@apache.org
Subject [1/2] kylin git commit: KYLIN-1128 cube clone fix cubes update error
Date Fri, 08 Jan 2016 10:48:31 GMT
Repository: kylin
Updated Branches:
  refs/heads/1.x-staging 096983040 -> ebecfcef8


KYLIN-1128 cube clone fix cubes update error


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

Branch: refs/heads/1.x-staging
Commit: ebecfcef8386ee49f0907799df8f88401a2a2c01
Parents: e9e85d9
Author: jian <zhongjian@apache.org>
Authored: Fri Jan 8 18:47:04 2016 +0800
Committer: jian <zhongjian@apache.org>
Committed: Fri Jan 8 18:48:06 2016 +0800

----------------------------------------------------------------------
 webapp/app/js/controllers/cubes.js        | 5 +++--
 webapp/app/partials/cubes/cube_clone.html | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/ebecfcef/webapp/app/js/controllers/cubes.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/cubes.js b/webapp/app/js/controllers/cubes.js
index aada1ee..d277dc1 100755
--- a/webapp/app/js/controllers/cubes.js
+++ b/webapp/app/js/controllers/cubes.js
@@ -395,7 +395,8 @@ var cubeCloneCtrl = function ($scope, $modalInstance, CubeService, MessageServic
   $scope.projectModel = ProjectModel;
 
   $scope.targetObj={
-    cubeName:cube.descriptor+"_clone"
+    cubeName:cube.descriptor+"_clone",
+    targetProject:$scope.projectModel.selectedProject
   }
 
   $scope.cancel = function () {
@@ -406,7 +407,7 @@ var cubeCloneCtrl = function ($scope, $modalInstance, CubeService, MessageServic
 
     $scope.cubeRequest = {
       cubeName:$scope.targetObj.cubeName,
-      project:$scope.projectModel.selectedProject
+      project:$scope.targetObj.targetProject
     }
 
     SweetAlert.swal({

http://git-wip-us.apache.org/repos/asf/kylin/blob/ebecfcef/webapp/app/partials/cubes/cube_clone.html
----------------------------------------------------------------------
diff --git a/webapp/app/partials/cubes/cube_clone.html b/webapp/app/partials/cubes/cube_clone.html
index 2a5f485..099d6a5 100644
--- a/webapp/app/partials/cubes/cube_clone.html
+++ b/webapp/app/partials/cubes/cube_clone.html
@@ -29,7 +29,7 @@
           <div class="form-group">
             <b>Target Project is:</b>
             <br/>
-            <select ng-required="projectModel.projects.length" chosen ng-model="projectModel.selectedProject"
+            <select ng-required="projectModel.projects.length" chosen ng-model="targetObj.targetProject"
                     ng-init="newAccess.permission=permissions.READ.value;"
                     ng-options="project as project for project in projectModel.projects "
                     style="width: 100% !important;"


Mime
View raw message