1
0
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:
Alex Tran 2024-12-16 08:52:29 -06:00
parent afd0b9f67d
commit bc1e1fad85
3 changed files with 3 additions and 3 deletions

View File

@ -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',

View File

@ -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);
};

View File

@ -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;
}