From 6150a008d50fd629bdba688321081a35273ed521 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 16 Aug 2022 09:38:34 +0000 Subject: [PATCH] fixes --- apps/api/src/lib/common.ts | 4 ++-- apps/ui/src/lib/common.ts | 4 ++-- .../applications/[id]/configuration/destination.svelte | 10 +++++++++- .../databases/[id]/configuration/destination.svelte | 10 +++++++++- apps/ui/src/routes/index.svelte | 2 +- apps/ui/src/routes/services/[id]/__layout.svelte | 1 - .../services/[id]/configuration/destination.svelte | 10 +++++++++- .../routes/services/[id]/configuration/version.svelte | 8 ++++++++ 8 files changed, 40 insertions(+), 9 deletions(-) diff --git a/apps/api/src/lib/common.ts b/apps/api/src/lib/common.ts index 6170d380c..d67125db3 100644 --- a/apps/api/src/lib/common.ts +++ b/apps/api/src/lib/common.ts @@ -260,8 +260,8 @@ export const supportedServiceTypesAndVersions = [ fancyName: 'Hasura', baseImage: 'hasura/graphql-engine', images: ['postgres:12-alpine'], - versions: ['latest', 'v2.8.4', 'v2.5.1'], - recommendedVersion: 'v2.8.4', + versions: ['latest', 'v2.10.0', 'v2.5.1'], + recommendedVersion: 'v2.10.0', ports: { main: 8080 } diff --git a/apps/ui/src/lib/common.ts b/apps/ui/src/lib/common.ts index 32485a522..08b863d57 100644 --- a/apps/ui/src/lib/common.ts +++ b/apps/ui/src/lib/common.ts @@ -131,8 +131,8 @@ export const supportedServiceTypesAndVersions = [ fancyName: 'Hasura', baseImage: 'hasura/graphql-engine', images: ['postgres:12-alpine'], - versions: ['latest', 'v2.5.1'], - recommendedVersion: 'v2.5.1', + versions: ['latest', 'v2.10.0', 'v2.5.1'], + recommendedVersion: 'v2.10.0', ports: { main: 8080 } diff --git a/apps/ui/src/routes/applications/[id]/configuration/destination.svelte b/apps/ui/src/routes/applications/[id]/configuration/destination.svelte index 2bfe98a5c..5265ec452 100644 --- a/apps/ui/src/routes/applications/[id]/configuration/destination.svelte +++ b/apps/ui/src/routes/applications/[id]/configuration/destination.svelte @@ -31,6 +31,7 @@ import { t } from '$lib/translations'; import { appSession } from '$lib/store'; import { errorNotification } from '$lib/common'; + import { onMount } from 'svelte/types/runtime/internal/lifecycle'; const { id } = $page.params; const from = $page.url.searchParams.get('from'); @@ -55,6 +56,11 @@ return errorNotification(error); } } + onMount(async () => { + if (destinations.length === 1) { + await handleSubmit(destinations[0].id); + } + });
@@ -65,7 +71,9 @@