From cf9e122bd26bb587602aadb5d503488f39046efb Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 26 Aug 2022 13:17:35 +0200 Subject: [PATCH] ui: fixes --- apps/api/src/routes/api/v1/handlers.ts | 3 +- apps/ui/src/routes/index.svelte | 116 ++++++++++++++++--------- 2 files changed, 75 insertions(+), 44 deletions(-) diff --git a/apps/api/src/routes/api/v1/handlers.ts b/apps/api/src/routes/api/v1/handlers.ts index ed7a77c6e..f5946c447 100644 --- a/apps/api/src/routes/api/v1/handlers.ts +++ b/apps/api/src/routes/api/v1/handlers.ts @@ -118,7 +118,8 @@ export async function showDashboard(request: FastifyRequest) { include: { settings: true } }); const databases = await prisma.database.findMany({ - where: { teams: { some: { id: teamId === '0' ? undefined : teamId } } } + where: { teams: { some: { id: teamId === '0' ? undefined : teamId } } }, + include: { settings: true } }); const services = await prisma.service.findMany({ where: { teams: { some: { id: teamId === '0' ? undefined : teamId } } } diff --git a/apps/ui/src/routes/index.svelte b/apps/ui/src/routes/index.svelte index 52b8ad172..7380250a1 100644 --- a/apps/ui/src/routes/index.svelte +++ b/apps/ui/src/routes/index.svelte @@ -80,13 +80,13 @@ {#if $appSession.teamId === '0'} {/if} - {#if applications.length > 0} -

Applications

-
-
+

Applications

+