You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ka...@apache.org on 2017/05/24 10:42:43 UTC
[12/50] [abbrv] kylin git commit: fix KYLIN-2594: After reloading
metadata, refresh the project list
fix KYLIN-2594: After reloading metadata, refresh the project list
Signed-off-by: Billy Liu <bi...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/87fedf75
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/87fedf75
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/87fedf75
Branch: refs/heads/KYLIN-2606
Commit: 87fedf75e5bbf61a33cf1b31720ad9ac55de6287
Parents: a34db26
Author: pengjianlin <ps...@163.com>
Authored: Fri May 19 16:24:28 2017 +0800
Committer: Billy Liu <bi...@apache.org>
Committed: Fri May 19 16:44:28 2017 +0800
----------------------------------------------------------------------
webapp/app/js/controllers/admin.js | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kylin/blob/87fedf75/webapp/app/js/controllers/admin.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/admin.js b/webapp/app/js/controllers/admin.js
index 10e2c38..37c1d67 100644
--- a/webapp/app/js/controllers/admin.js
+++ b/webapp/app/js/controllers/admin.js
@@ -18,7 +18,7 @@
'use strict';
-KylinApp.controller('AdminCtrl', function ($scope, AdminService, CacheService, TableService, loadingRequest, MessageService, $modal, SweetAlert,kylinConfig,ProjectModel,$window) {
+KylinApp.controller('AdminCtrl', function ($scope, AdminService, CacheService, TableService, loadingRequest, MessageService, ProjectService, $modal, SweetAlert,kylinConfig,ProjectModel,$window) {
$scope.configStr = "";
$scope.envStr = "";
@@ -84,7 +84,7 @@ KylinApp.controller('AdminCtrl', function ($scope, AdminService, CacheService, T
}
});
}
-
+
$scope.reloadMeta = function () {
SweetAlert.swal({
title: '',
@@ -98,6 +98,9 @@ KylinApp.controller('AdminCtrl', function ($scope, AdminService, CacheService, T
if (isConfirm) {
CacheService.clean({}, function () {
SweetAlert.swal('Success!', 'Cache reload successfully', 'success');
+ ProjectService.listReadable({}, function(projects) {
+ ProjectModel.setProjects(projects);
+ });
}, function (e) {
if (e.data && e.data.exception) {
var message = e.data.exception;