You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by bi...@apache.org on 2018/02/28 15:16:37 UTC
[kylin] 02/03: KYLIN-2884 Add delete segment function for portal -
bug fix
This is an automated email from the ASF dual-hosted git repository.
billyliu pushed a commit to branch 2.3.x
in repository https://gitbox.apache.org/repos/asf/kylin.git
commit f1f808ca2f30727d7b6e7b2c3ab6843b9941d380
Author: liapan <li...@ebay.com>
AuthorDate: Sat Feb 24 14:22:28 2018 +0800
KYLIN-2884 Add delete segment function for portal - bug fix
---
webapp/app/js/controllers/cubes.js | 36 +++++++++++++++++++-----------------
1 file changed, 19 insertions(+), 17 deletions(-)
diff --git a/webapp/app/js/controllers/cubes.js b/webapp/app/js/controllers/cubes.js
index a386202..cbd6fad 100644
--- a/webapp/app/js/controllers/cubes.js
+++ b/webapp/app/js/controllers/cubes.js
@@ -522,23 +522,25 @@ KylinApp.controller('CubesCtrl', function ($scope, $q, $routeParams, $location,
})
};
- $scope.startDeleteSegment = function (cube) {
- $scope.metaModel={
- model:modelsManager.getModelByCube(cube.name)
- };
- $modal.open({
- templateUrl: 'deleteSegment.html',
- controller: deleteSegmentCtrl,
- resolve: {
- cube: function () {
- return cube;
- },
- scope: function() {
- return $scope;
- }
- }
- });
- };
+ $scope.startDeleteSegment = function (cube) {
+ $scope.loadDetail(cube).then(function () {
+ $scope.metaModel={
+ model:modelsManager.getModelByCube(cube.name)
+ };
+ $modal.open({
+ templateUrl: 'deleteSegment.html',
+ controller: deleteSegmentCtrl,
+ resolve: {
+ cube: function () {
+ return cube;
+ },
+ scope: function() {
+ return $scope;
+ }
+ }
+ });
+ });
+ };
});
--
To stop receiving notification emails like this one, please contact
billyliu@apache.org.