Repository: kylin Updated Branches: refs/heads/master 3efa9b4fe -> 27ba8c755
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/master Commit: 27ba8c75518757fb6503c64915c204cb99e9d089 Parents: 3efa9b4 Author: peng.jianhua <peng.jian...@zte.com.cn> Authored: Thu Oct 19 16:48:58 2017 +0800 Committer: luguosheng1314 <550175...@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,