Add button to perform search globally in library

This commit is contained in:
schroda
2025-05-21 00:58:28 +02:00
parent cafa0c3983
commit daeab31121
4 changed files with 31 additions and 3 deletions

View File

@@ -106,7 +106,11 @@ export const AppRoutes = {
},
searchAll: {
match: 'all/search',
path: '/sources/all/search',
path: (query?: string | null | undefined) => {
const queryParam = query ? `query=${encodeURIComponent(query)}` : '';
return `/sources/all/search${queryParam ? `?${queryParam}` : ''}`;
},
},
},
},