From e4748a28c2f5a93bc50156074d07fdc28e6b12b8 Mon Sep 17 00:00:00 2001 From: "peng.jianhua" Date: Thu, 30 Nov 2017 17:26:47 +0800 Subject: [PATCH 1/1] KYLIN-3073 When you save a new query condition, the 'Saved Queries' tab page will not be automatically refreshed. --- webapp/app/js/controllers/query.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webapp/app/js/controllers/query.js b/webapp/app/js/controllers/query.js index 945ddef..ef4d988 100644 --- a/webapp/app/js/controllers/query.js +++ b/webapp/app/js/controllers/query.js @@ -370,7 +370,7 @@ KylinApp }; $scope.showSavePanel = function () { - $modal.open({ + var modalInstance = $modal.open({ templateUrl: 'saveQueryModal.html', controller: saveQueryController, resolve: { @@ -379,6 +379,11 @@ KylinApp } } }); + modalInstance.result.then( function (result) { + $scope.listSavedQueries(); + }, function (reason) { + $scope.listSavedQueries(); + }); } var saveQueryController = function ($scope, $modalInstance, curQuery, QueryService) { -- 2.7.2.windows.1