Forráskód Böngészése

HUE-6583 [security] Hashchange should respond on the exact security path

Enrico Berti 8 éve
szülő
commit
bba8cf2106

+ 1 - 1
apps/security/src/security/templates/hdfs.mako

@@ -373,7 +373,7 @@ ${ tree.import_templates(itemClick='$root.assist.setPath', iconClick='$root.assi
       });
 
       window.onhashchange = function() {
-        if (window.location.pathname.indexOf('/security') > -1) {
+        if (window.location.pathname.indexOf('/security/hdfs') > -1) {
           viewModel.assist.path(window.location.hash.substr(1));
         }
       };

+ 1 - 1
apps/security/src/security/templates/hive.mako

@@ -682,7 +682,7 @@ ${ tree.import_templates(itemClick='$root.assist.setPath', iconClick='$root.assi
       });
 
       window.onhashchange = function() {
-        if (window.location.pathname.indexOf('/security') > -1) {
+        if (window.location.pathname.indexOf('/security/hive') > -1) {
           viewModel.assist.path(viewModel.getPathHash());
         }
       };

+ 1 - 1
apps/security/src/security/templates/sentry.mako

@@ -738,7 +738,7 @@ ${ tree.import_templates(itemClick='$root.assist.setPath', iconClick='$root.assi
       });
 
       window.onhashchange = function () {
-        if (window.location.pathname.indexOf('/security') > -1) {
+        if (window.location.pathname.indexOf('/security/${component}') > -1) {
           viewModel.assist.path(viewModel.getPathHash());
         }
       };