Filter out system areas

This commit is contained in:
Bryan Ashby 2017-09-26 10:42:53 -06:00
parent 0f9e545b7b
commit 8479091d33
1 changed files with 7 additions and 1 deletions

View File

@ -675,7 +675,13 @@ exports.getModule = class FileAreaList extends MenuModule {
loadFileIds(force, cb) {
if(force || (_.isUndefined(this.fileList) || _.isUndefined(this.fileListPosition))) {
this.fileListPosition = 0;
FileEntry.findFiles(this.filterCriteria, (err, fileIds) => {
const filterCriteria = Object.assign({}, this.filterCriteria);
if(!filterCriteria.areaTag) {
filterCriteria.areaTag = FileArea.getAvailableFileAreaTags(this.client);
}
FileEntry.findFiles(filterCriteria, (err, fileIds) => {
this.fileList = fileIds;
return cb(err);
});