feat(ui): Tabs ohne 'Root'; Favoriten-Tab hinzugefügt und filtert lokale Sterne
This commit is contained in:
parent
99588e446c
commit
b9295a9050
2 changed files with 11 additions and 3 deletions
|
|
@ -225,8 +225,7 @@ app.get('/api/sounds', (req: Request, res: Response) => {
|
|||
const filteredItems = itemsByFolder.filter((s) => (q ? s.name.toLowerCase().includes(q) : true));
|
||||
|
||||
const total = allItems.length;
|
||||
const rootCount = rootFiles.length;
|
||||
const foldersOut = [{ key: '__all__', name: 'Alle', count: total }, { key: '', name: 'Root', count: rootCount }, ...folders];
|
||||
const foldersOut = [{ key: '__all__', name: 'Alle', count: total }, ...folders];
|
||||
|
||||
res.json({ items: filteredItems, total, folders: foldersOut });
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue