浏览代码

HUE-7248 [adls] Remove compress feature

jdesjean 8 年之前
父节点
当前提交
8f86fcd
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      apps/filebrowser/src/filebrowser/templates/listdir_components.mako

+ 5 - 1
apps/filebrowser/src/filebrowser/templates/listdir_components.mako

@@ -1050,6 +1050,10 @@ from filebrowser.conf import ENABLE_EXTRACT_UPLOADED_ARCHIVE
         return self.currentPath().toLowerCase().indexOf('s3a://') === 0;
       });
 
+      self.isAdls = ko.pureComputed(function () {
+        return self.currentPath().toLowerCase().indexOf('adl:/') === 0;
+      });
+
       self.scheme = ko.pureComputed(function () {
         var path = self.currentPath();
         return path.substring(0, path.indexOf(':/')) || "hdfs";
@@ -1092,7 +1096,7 @@ from filebrowser.conf import ENABLE_EXTRACT_UPLOADED_ARCHIVE
         return currentPath.indexOf('/') === 0 || currentPath.indexOf('hdfs') === 0
       });
       self.isCompressEnabled = ko.pureComputed(function () {
-        return !self.isS3();
+        return !self.isS3() && !self.isAdls();
       });
       self.isSummaryEnabled = ko.pureComputed(function () {
         return self.isHdfs();