fixed file list

This commit is contained in:
antelle 2019-09-20 22:18:23 +02:00
parent bc8aad5062
commit c14567311b
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import { FileModel } from 'models/file-model';
class FileCollection extends Collection {
static model = FileModel;
static wantsArrayProperties = true;
hasOpenFiles() {
return this.some(file => file.active);