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/05/12 05:22:18 UTC
[03/23] kylin git commit: KYLIN-2582 'Server Config' should be
refreshed automatically in web page 'System', after we update it successfully.
KYLIN-2582 'Server Config' should be refreshed automatically in web page 'System', after we update it successfully.
Signed-off-by: Yang Li <li...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/c41c2d74
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/c41c2d74
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/c41c2d74
Branch: refs/heads/2.0.x-hbase0.98
Commit: c41c2d749db5f3598fbce4005df3f79c27394e90
Parents: b8c7922
Author: 10069681 <pe...@zte.com.cn>
Authored: Wed May 3 11:11:02 2017 +0800
Committer: Yang Li <li...@apache.org>
Committed: Tue May 9 07:06:24 2017 +0800
----------------------------------------------------------------------
webapp/app/js/controllers/admin.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kylin/blob/c41c2d74/webapp/app/js/controllers/admin.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/admin.js b/webapp/app/js/controllers/admin.js
index 783ab17..10e2c38 100644
--- a/webapp/app/js/controllers/admin.js
+++ b/webapp/app/js/controllers/admin.js
@@ -71,6 +71,7 @@ KylinApp.controller('AdminCtrl', function ($scope, AdminService, CacheService, T
if (isConfirm) {
CacheService.reloadConfig({}, function () {
SweetAlert.swal('Success!', 'config reload successfully', 'success');
+ $scope.getConfig();
}, function (e) {
if (e.data && e.data.exception) {
var message = e.data.exception;
@@ -214,6 +215,7 @@ KylinApp.controller('AdminCtrl', function ($scope, AdminService, CacheService, T
$modal.open({
templateUrl: 'updateConfig.html',
controller: updateConfigCtrl,
+ scope: $scope,
resolve: {}
});
}
@@ -256,11 +258,10 @@ KylinApp.controller('AdminCtrl', function ($scope, AdminService, CacheService, T
$modalInstance.dismiss('cancel');
};
$scope.update = function () {
-
-
AdminService.updateConfig({}, {key: $scope.state.key, value: $scope.state.value}, function (result) {
SweetAlert.swal('Success!', 'Config updated successfully!', 'success');
$modalInstance.dismiss();
+ $scope.getConfig();
}, function (e) {
if (e.data && e.data.exception) {
var message = e.data.exception;