Преглед на файлове

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();