AMBARI-20274. Visual explain is not routing to visual explain tab (pallavkul)


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

Branch: refs/heads/branch-feature-AMBARI-12556
Commit: 3e648bb07b58216a8ddf2f2a41980b294cdc2c9d
Parents: 5ab46f0
Author: pallavkul <pallav....@gmail.com>
Authored: Thu Mar 2 23:44:23 2017 +0530
Committer: pallavkul <pallav....@gmail.com>
Committed: Thu Mar 2 23:44:23 2017 +0530

----------------------------------------------------------------------
 .../src/main/resources/ui/app/routes/queries/query.js | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/3e648bb0/contrib/views/hive20/src/main/resources/ui/app/routes/queries/query.js
----------------------------------------------------------------------
diff --git 
a/contrib/views/hive20/src/main/resources/ui/app/routes/queries/query.js 
b/contrib/views/hive20/src/main/resources/ui/app/routes/queries/query.js
index cf51ff7..d08a47b 100644
--- a/contrib/views/hive20/src/main/resources/ui/app/routes/queries/query.js
+++ b/contrib/views/hive20/src/main/resources/ui/app/routes/queries/query.js
@@ -388,16 +388,14 @@ export default Ember.Route.extend(UILoggerMixin, {
           self.send('showVisualExplain', payloadTitle);
         } else {
           self.get('controller.model').set('visualExplainJson', null);
-        }
-
-        if( self.paramsFor('queries.query').worksheetId && 
(self.paramsFor('queries.query').worksheetId.toLowerCase() == payloadTitle)){
-          self.transitionTo('queries.query.loading');
-
-          Ember.run.later(() => {
-            self.transitionTo('queries.query.results');
-          }, 1 * 100);
 
+          if( self.paramsFor('queries.query').worksheetId && 
(self.paramsFor('queries.query').worksheetId.toLowerCase() == payloadTitle)){
+            self.transitionTo('queries.query.loading');
 
+            Ember.run.later(() => {
+              self.transitionTo('queries.query.results');
+            }, 1 * 100);
+          }
         }
 
       }, function(error) {

Reply via email to