From 16d01c7bb9efffbbc3334700540fad9ee9129d71 Mon Sep 17 00:00:00 2001 From: chenzhx Date: Fri, 20 Apr 2018 20:50:55 +0800 Subject: [PATCH] KYLIN-3343 support RDBMS on GUI --- webapp/app/js/controllers/sourceMeta.js | 4 ++++ webapp/app/js/services/kylinProperties.js | 7 +++++++ webapp/app/partials/tables/source_table_tree.html | 8 ++++---- webapp/app/partials/tables/table_detail.html | 6 +++--- webapp/app/partials/tables/table_load.html | 6 +++--- 5 files changed, 21 insertions(+), 10 deletions(-) diff --git a/webapp/app/js/controllers/sourceMeta.js b/webapp/app/js/controllers/sourceMeta.js index 49a9613a7..c028f5342 100755 --- a/webapp/app/js/controllers/sourceMeta.js +++ b/webapp/app/js/controllers/sourceMeta.js @@ -260,6 +260,10 @@ KylinApp $scope.treeOptions = {multiSelection: true}; $scope.selectedNodes = []; $scope.hiveLimit = kylinConfig.getHiveLimit(); + $scope.sourceType = kylinConfig.getSourceType(); + if ($scope.sourceType !== 0) { + $scope.isCalculate.val = false + } $scope.loadHive = function () { if($scope.hiveLoaded) diff --git a/webapp/app/js/services/kylinProperties.js b/webapp/app/js/services/kylinProperties.js index bd492bdf0..91ab07005 100644 --- a/webapp/app/js/services/kylinProperties.js +++ b/webapp/app/js/services/kylinProperties.js @@ -161,5 +161,12 @@ KylinApp.service('kylinConfig', function (AdminService, $log) { return false; } + this.getSourceType = function(){ + this.sourceType = this.getProperty("kylin.source.default").trim(); + if (!this.sourceType) { + return 0; + } + return this.sourceType; + } }); diff --git a/webapp/app/partials/tables/source_table_tree.html b/webapp/app/partials/tables/source_table_tree.html index 30cfc8b7d..6ec21f269 100755 --- a/webapp/app/partials/tables/source_table_tree.html +++ b/webapp/app/partials/tables/source_table_tree.html @@ -25,8 +25,8 @@
- - + +
@@ -49,7 +49,7 @@