mirror of
https://github.com/immich-app/immich.git
synced 2025-01-21 00:52:43 -05:00
chore: enum name
This commit is contained in:
parent
afd0b9f67d
commit
bc1e1fad85
3 changed files with 3 additions and 3 deletions
|
@ -72,7 +72,7 @@ export const dateFormats = {
|
||||||
|
|
||||||
export enum QueryParameter {
|
export enum QueryParameter {
|
||||||
ACTION = 'action',
|
ACTION = 'action',
|
||||||
AFTER_MERGE_ROUTE = 'afterMergeRoute',
|
NEXT_ROUTE = 'nextRoute',
|
||||||
ID = 'id',
|
ID = 'id',
|
||||||
IS_OPEN = 'isOpen',
|
IS_OPEN = 'isOpen',
|
||||||
ONBOARDING_STEP = 'step',
|
ONBOARDING_STEP = 'step',
|
||||||
|
|
|
@ -227,7 +227,7 @@
|
||||||
const url = new URL(`${AppRoute.PEOPLE}/${detail.id}`, window.location.href);
|
const url = new URL(`${AppRoute.PEOPLE}/${detail.id}`, window.location.href);
|
||||||
url.searchParams.append(QueryParameter.ACTION, ActionQueryParameterValue.MERGE);
|
url.searchParams.append(QueryParameter.ACTION, ActionQueryParameterValue.MERGE);
|
||||||
url.searchParams.append(QueryParameter.PREVIOUS_ROUTE, AppRoute.PEOPLE);
|
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);
|
await goto(url);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,7 @@
|
||||||
previousRoute = getPreviousRoute;
|
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)) {
|
if (getAfterMergeRoute && !isExternalUrl(getAfterMergeRoute)) {
|
||||||
afterMergeRoute = getAfterMergeRoute;
|
afterMergeRoute = getAfterMergeRoute;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue