You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2017/10/19 13:43:18 UTC
[2/4] kylin git commit: KYLIN-2947 Changed the Pop-up box when no
project selected
KYLIN-2947 Changed the Pop-up box when no project selected
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/27ba8c75
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/27ba8c75
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/27ba8c75
Branch: refs/heads/pr77
Commit: 27ba8c75518757fb6503c64915c204cb99e9d089
Parents: 3efa9b4
Author: peng.jianhua <pe...@zte.com.cn>
Authored: Thu Oct 19 16:48:58 2017 +0800
Committer: luguosheng1314 <55...@qq.com>
Committed: Thu Oct 19 17:34:31 2017 +0800
----------------------------------------------------------------------
webapp/app/js/controllers/admin.js | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kylin/blob/27ba8c75/webapp/app/js/controllers/admin.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/admin.js b/webapp/app/js/controllers/admin.js
index 0437942..bbba593 100644
--- a/webapp/app/js/controllers/admin.js
+++ b/webapp/app/js/controllers/admin.js
@@ -116,6 +116,11 @@ KylinApp.controller('AdminCtrl', function ($scope, AdminService, CacheService, T
}
$scope.calCardinality = function (tableName) {
+ var _project = ProjectModel.selectedProject;
+ if (_project == null){
+ SweetAlert.swal('', "No project selected.", 'info');
+ return;
+ }
$modal.open({
templateUrl: 'calCardinality.html',
controller: CardinalityGenCtrl,