mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
feat: upload assets to locked folder (#18806)
* feat: upload assets to locked folder * chore: refactor params
This commit is contained in:
parent
5589616921
commit
b5c3a675b2
6 changed files with 43 additions and 18 deletions
|
|
@ -17,6 +17,7 @@ export const isSharedLinkRoute = (route?: string | null) => !!route?.startsWith(
|
|||
export const isSearchRoute = (route?: string | null) => !!route?.startsWith('/(user)/search');
|
||||
export const isAlbumsRoute = (route?: string | null) => !!route?.startsWith('/(user)/albums/[albumId=id]');
|
||||
export const isPeopleRoute = (route?: string | null) => !!route?.startsWith('/(user)/people/[personId]');
|
||||
export const isLockedFolderRoute = (route?: string | null) => !!route?.startsWith('/(user)/locked');
|
||||
|
||||
export const isAssetViewerRoute = (target?: NavigationTarget | null) =>
|
||||
!!(target?.route.id?.endsWith('/[[assetId=id]]') && 'assetId' in (target?.params || {}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue