diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-22 13:02:32 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-22 13:02:32 +0200 |
| commit | 2925f4043d51fcfd7ef9c139d9205c7f813e7af4 (patch) | |
| tree | 450deada26e98fa923dbc3b4cd4b1c8c3fa1bf79 /app/client/common/folderList.component.js | |
| parent | 58a77a6b4986548e04cddd86ee07ea961066b446 (diff) | |
new way to die
Diffstat (limited to 'app/client/common/folderList.component.js')
| -rw-r--r-- | app/client/common/folderList.component.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/client/common/folderList.component.js b/app/client/common/folderList.component.js index b609685..a6c6ae5 100644 --- a/app/client/common/folderList.component.js +++ b/app/client/common/folderList.component.js @@ -8,7 +8,7 @@ import Group from './group.component' import Param from './param.component' import Loading from './loading.component' -export default function FolderList ({ db, path, emptyText }) { +export default function FolderList ({ db, path, emptyText, activity }) { if (! db) return null if (db.loading || !db.data) { return ( @@ -17,7 +17,10 @@ export default function FolderList ({ db, path, emptyText }) { </div> ) } - let folderList = db.data.folders.filter(folder => !! folder.generated) + let folderList = db.data.folders + if (activity) { + folderList = folderList.filter(f => f.activity === activity) + } if (! folderList.length && emptyText) { return ( <div class='col folderList'> |
