Browse Source

HUE-5788 [core] Set default file type icon for non directory files.

krish 8 năm trước cách đây
mục cha
commit
3c53cb4

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/assist/assistGitEntry.js

@@ -146,7 +146,7 @@ var AssistGitEntry = (function () {
 
   AssistGitEntry.prototype.toggleOpen = function () {
     var self = this;
-    if (self.definition.type === 'file') {
+    if (self.definition.type != 'dir') {
       return;
     }
     self.open(!self.open());

+ 1 - 1
desktop/core/src/desktop/templates/assist.mako

@@ -353,7 +353,7 @@ from notebook.conf import ENABLE_QUERY_BUILDER
                   <!-- ko if: definition.type === 'dir' -->
                   <i class="fa fa-fw fa-folder-o muted valign-middle"></i>
                   <!-- /ko -->
-                  <!-- ko if: definition.type === 'file' -->
+                  <!-- ko ifnot: definition.type === 'dir' -->
                   <i class="fa fa-fw fa-file-o muted valign-middle"></i>
                   <!-- /ko -->
                   <span draggable="true" data-bind="text: definition.name, draggableText: { text: '\'' + path + '\'', meta: {'type': 'git', 'definition': definition} }"></span>