diff --git a/frontend/src/lib/components/apps/components/inputs/AppUserResource.svelte b/frontend/src/lib/components/apps/components/inputs/AppUserResource.svelte new file mode 100644 index 0000000000..6ff5791245 --- /dev/null +++ b/frontend/src/lib/components/apps/components/inputs/AppUserResource.svelte @@ -0,0 +1,102 @@ + + +{#each Object.keys(components['userresourcecomponent'].initialData.configuration) as key (key)} + +{/each} + +{#each Object.keys(css ?? {}) as key (key)} + +{/each} + + +{#if render} + +
+ { + assignValue(e.detail) + }} + disabled={resolvedConfig.disabled} + resourceType={resolvedConfig.resourceType} + /> +
+
+{/if} diff --git a/frontend/src/lib/navigation.ts b/frontend/src/lib/navigation.ts index 8a677e5eff..5c140a677e 100644 --- a/frontend/src/lib/navigation.ts +++ b/frontend/src/lib/navigation.ts @@ -2,7 +2,7 @@ import { goto as svelteGoto } from '$app/navigation' import { base as svelteBase } from '$app/paths' export function goto(path, options = {}) { - if (svelteBase == '') { + if (svelteBase == '' || path.startsWith('?')) { return svelteGoto(path, options) } else { const fullPath = path.startsWith(svelteBase) ? path : `${svelteBase}${path}` @@ -22,9 +22,7 @@ export async function setQuery( url.searchParams.delete(key) } - await goto( - currentHash - ? `?${url.searchParams.toString()}${currentHash}` - : `?${url.searchParams.toString()}` - ) + let searchParams = url.searchParams.toString() + + await goto(currentHash ? `?${searchParams}${currentHash}` : `?${searchParams}`) }