You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ch...@apache.org on 2017/12/11 11:01:39 UTC

kylin git commit: KYLIN-3073 When you save a new query condition, the 'Saved Queries' tab page will not be automatically refreshed.

Repository: kylin
Updated Branches:
  refs/heads/master ccf44c322 -> da703bc11


KYLIN-3073 When you save a new query condition, the 'Saved Queries' tab page will not be automatically refreshed.


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/da703bc1
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/da703bc1
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/da703bc1

Branch: refs/heads/master
Commit: da703bc11fdff6916e6acd9ef75f2e31473fcd45
Parents: ccf44c3
Author: peng.jianhua <pe...@zte.com.cn>
Authored: Thu Nov 30 17:26:47 2017 +0800
Committer: chenzhx <ch...@apache.org>
Committed: Mon Dec 11 18:59:51 2017 +0800

----------------------------------------------------------------------
 webapp/app/js/controllers/query.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/da703bc1/webapp/app/js/controllers/query.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/query.js b/webapp/app/js/controllers/query.js
index 90699df..f29cf58 100644
--- a/webapp/app/js/controllers/query.js
+++ b/webapp/app/js/controllers/query.js
@@ -364,7 +364,7 @@ KylinApp
         };
 
         $scope.showSavePanel = function () {
-            $modal.open({
+            var modalInstance = $modal.open({
                 templateUrl: 'saveQueryModal.html',
                 controller: saveQueryController,
                 resolve: {
@@ -373,6 +373,11 @@ KylinApp
                     }
                 }
             });
+            modalInstance.result.then( function (result) {
+                $scope.listSavedQueries();
+            }, function (reason) {
+                $scope.listSavedQueries();
+            });
         }
 
         var saveQueryController = function ($scope, $modalInstance, curQuery, QueryService) {