mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
chore: enum name
This commit is contained in:
parent
afd0b9f67d
commit
bc1e1fad85
@ -72,7 +72,7 @@ export const dateFormats = {
|
||||
|
||||
export enum QueryParameter {
|
||||
ACTION = 'action',
|
||||
AFTER_MERGE_ROUTE = 'afterMergeRoute',
|
||||
NEXT_ROUTE = 'nextRoute',
|
||||
ID = 'id',
|
||||
IS_OPEN = 'isOpen',
|
||||
ONBOARDING_STEP = 'step',
|
||||
|
@ -227,7 +227,7 @@
|
||||
const url = new URL(`${AppRoute.PEOPLE}/${detail.id}`, window.location.href);
|
||||
url.searchParams.append(QueryParameter.ACTION, ActionQueryParameterValue.MERGE);
|
||||
url.searchParams.append(QueryParameter.PREVIOUS_ROUTE, AppRoute.PEOPLE);
|
||||
url.searchParams.append(QueryParameter.AFTER_MERGE_ROUTE, AppRoute.PEOPLE);
|
||||
url.searchParams.append(QueryParameter.NEXT_ROUTE, AppRoute.PEOPLE);
|
||||
await goto(url);
|
||||
};
|
||||
|
||||
|
@ -109,7 +109,7 @@
|
||||
previousRoute = getPreviousRoute;
|
||||
}
|
||||
|
||||
const getAfterMergeRoute = $page.url.searchParams.get(QueryParameter.AFTER_MERGE_ROUTE);
|
||||
const getAfterMergeRoute = $page.url.searchParams.get(QueryParameter.NEXT_ROUTE);
|
||||
if (getAfterMergeRoute && !isExternalUrl(getAfterMergeRoute)) {
|
||||
afterMergeRoute = getAfterMergeRoute;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user