use single query param

This commit is contained in:
Mees Frensel
2026-03-05 11:02:02 +01:00
parent 372aad07d5
commit 3644f67f59
2 changed files with 3 additions and 3 deletions

View File

@@ -412,7 +412,7 @@
{/snippet} {/snippet}
</MapLibre> </MapLibre>
{#snippet failed(_error)} {#snippet failed(_)}
<div <div
class={[ class={[
'flex place-content-center place-items-center text-warning', 'flex place-content-center place-items-center text-warning',
@@ -427,7 +427,7 @@
{$t('errors.enable_webgl_for_map', { values: { isAdmin: $user.isAdmin } })} {$t('errors.enable_webgl_for_map', { values: { isAdmin: $user.isAdmin } })}
</Text> </Text>
{#if $user.isAdmin} {#if $user.isAdmin}
<Link href={Route.systemSettings({ isOpen: OpenQueryParam.MAP })}>{$t('go_to_settings')}</Link> <Link href={Route.systemSettings({ isOpen: OpenQueryParam.LOCATION })}>{$t('go_to_settings')}</Link>
{/if} {/if}
</div> </div>
</div> </div>

View File

@@ -65,7 +65,7 @@ export enum OpenQueryParam {
OAUTH = 'oauth', OAUTH = 'oauth',
JOB = 'job', JOB = 'job',
STORAGE_TEMPLATE = 'storage-template', STORAGE_TEMPLATE = 'storage-template',
MAP = 'location map', LOCATION = 'location',
NOTIFICATIONS = 'notifications', NOTIFICATIONS = 'notifications',
PURCHASE_SETTINGS = 'user-purchase-settings', PURCHASE_SETTINGS = 'user-purchase-settings',
} }