fix(ui): doppelten 'Neu'-Tab vermeiden Backend benennt Tab in 'Neu (10)' um; nur ein Neu-Tab im Frontend
This commit is contained in:
parent
33866a1fa5
commit
018c36487d
2 changed files with 1 additions and 16 deletions
|
|
@ -332,7 +332,7 @@ app.get('/api/sounds', (req: Request, res: Response) => {
|
|||
const recentCount = Math.min(10, total);
|
||||
const foldersOut = [
|
||||
{ key: '__all__', name: 'Alle', count: total },
|
||||
{ key: '__recent__', name: 'Neu', count: recentCount },
|
||||
{ key: '__recent__', name: 'Neu (10)', count: recentCount },
|
||||
...folders
|
||||
];
|
||||
// isRecent-Flag für UI (Top 5 der neuesten)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue