소스 검색

HUE-8192 [assist] Include description in the assist document filter

Johan Ahlen 7 년 전
부모
커밋
d38a8223c8
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      desktop/core/src/desktop/static/desktop/js/document/hueFileEntry.js

+ 2 - 1
desktop/core/src/desktop/static/desktop/js/document/hueFileEntry.js

@@ -116,7 +116,8 @@ var HueFileEntry = (function () {
           var entryType = entry.definition().type;
           return (typeFilter === 'all' || entryType === typeFilter || entryType === 'directory')
             && (!filter || entry.definition().name.toLowerCase().indexOf(filter) !== -1 ||
-            (HUE_I18n.documentType[entryType] && HUE_I18n.documentType[entryType].toLowerCase().indexOf(filter) !== -1));
+            (HUE_I18n.documentType[entryType] && HUE_I18n.documentType[entryType].toLowerCase().indexOf(filter) !== -1) ||
+            entry.definition().description.toLowerCase().indexOf(filter) !== -1);
         })
       }
       return self.entries();