mirror of
https://github.com/immich-app/immich.git
synced 2025-07-03 21:40:00 +02:00
feat(web): permanent url in shared link (#9083)
This commit is contained in:
parent
adb607c3ee
commit
912d0c4d74
5 changed files with 6 additions and 34 deletions
web/src/lib/utils
|
@ -18,8 +18,8 @@ export const isPeopleRoute = (route?: string | null) => !!route?.startsWith('/(u
|
|||
export const isAssetViewerRoute = (target?: NavigationTarget | null) =>
|
||||
!!(target?.route.id?.endsWith('/[[assetId=id]]') && 'assetId' in (target?.params || {}));
|
||||
|
||||
export function getAssetInfoFromParam({ assetId }: { assetId?: string }) {
|
||||
return assetId && getAssetInfo({ id: assetId });
|
||||
export function getAssetInfoFromParam({ assetId, key }: { assetId?: string; key?: string }) {
|
||||
return assetId && getAssetInfo({ id: assetId, key });
|
||||
}
|
||||
|
||||
function currentUrlWithoutAsset() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue