Browse Source

[sentry] Keep Hive v1 section unchanged and fix the table file link

Romain Rigaux 9 years ago
parent
commit
52a578d

+ 2 - 2
apps/security/src/security/static/security/js/hive.ko.js

@@ -642,12 +642,12 @@ var Assist = function (vm, initial) {
     self.setPath(obj, true);
     self.setPath(obj, true);
   }
   }
 
 
-  self.showAuthorizable = function (obj, e) {
+  self.showHdfs = function (obj, e) {
     e.preventDefault();
     e.preventDefault();
     e.stopPropagation();
     e.stopPropagation();
     e.stopImmediatePropagation();
     e.stopImmediatePropagation();
     self.fetchHivePath(obj.path(), function(data){
     self.fetchHivePath(obj.path(), function(data){
-      location.href = "/security/hdfs#" + data.authorizable_link.substring("/filebrowser/view=".length);
+      location.href = "/security/hdfs#" + data.hdfs_link.substring("/filebrowser/view=".length);
     });
     });
   }
   }
 
 

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

@@ -540,7 +540,7 @@ ${ layout.menubar(section='hive1') }
 <%def name="withPrivilegesPullRight()">
 <%def name="withPrivilegesPullRight()">
   <div class="pull-right">
   <div class="pull-right">
     <i class="fa fa-shield" data-bind="visible: withPrivileges()" style="color: #338bb8" title="${ _('Has some privileges') }"></i>&nbsp;
     <i class="fa fa-shield" data-bind="visible: withPrivileges()" style="color: #338bb8" title="${ _('Has some privileges') }"></i>&nbsp;
-    <i class="fa fa-file-o muted" data-bind="click: $root.assist.showAuthorizable ,visible: isTable()"></i>
+    <i class="fa fa-file-o muted" data-bind="click: $root.assist.showHdfs ,visible: isTable()"></i>
   </div>
   </div>
 </%def>
 </%def>