diff --git a/frontend/src/lib/components/ApiConnectForm.svelte b/frontend/src/lib/components/ApiConnectForm.svelte index 5a3bb3394a..fe9ddd85fa 100644 --- a/frontend/src/lib/components/ApiConnectForm.svelte +++ b/frontend/src/lib/components/ApiConnectForm.svelte @@ -1,13 +1,11 @@ {#if !notFound} @@ -104,11 +68,7 @@ export async function main(args: any) { right: 'As JSON' }} /> - {#if resource_type == 'postgresql'} - - {/if} + {:else}

-

Value

switchTab(e.detail)} options={{ right: 'As JSON' }} /> +
{#if loadingSchema} diff --git a/frontend/src/lib/components/TestConnection.svelte b/frontend/src/lib/components/TestConnection.svelte new file mode 100644 index 0000000000..d0c58ba98b --- /dev/null +++ b/frontend/src/lib/components/TestConnection.svelte @@ -0,0 +1,51 @@ + + +{#if resource_type == 'postgresql'} + +{/if} diff --git a/frontend/src/routes/(root)/(logged)/scripts/get/[...hash]/+page.svelte b/frontend/src/routes/(root)/(logged)/scripts/get/[...hash]/+page.svelte index 9c93a0c6d9..29525af5cb 100644 --- a/frontend/src/routes/(root)/(logged)/scripts/get/[...hash]/+page.svelte +++ b/frontend/src/routes/(root)/(logged)/scripts/get/[...hash]/+page.svelte @@ -28,7 +28,6 @@ import Skeleton from '$lib/components/common/skeleton/Skeleton.svelte' import RunForm from '$lib/components/RunForm.svelte' import { goto } from '$app/navigation' - import ScheduleEditor from '$lib/components/ScheduleEditor.svelte' import MoveDrawer from '$lib/components/MoveDrawer.svelte' import { sendUserToast } from '$lib/toast' @@ -184,7 +183,6 @@ sendUserToast(`Could not create job: ${err.body}`, true) } } - let scheduleEditor: ScheduleEditor let args = undefined let moveDrawer: MoveDrawer @@ -354,7 +352,6 @@ - {#if script}