From 795f99bb4799ca9bd14eb11288e3aec911ddb427 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 19 May 2022 15:18:19 +0200 Subject: [PATCH] fix: new source canceled view --- src/routes/sources/[id]/_Github.svelte | 10 ++++------ src/routes/sources/[id]/index.svelte | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/routes/sources/[id]/_Github.svelte b/src/routes/sources/[id]/_Github.svelte index b03fe8abd..6d91f2699 100644 --- a/src/routes/sources/[id]/_Github.svelte +++ b/src/routes/sources/[id]/_Github.svelte @@ -80,10 +80,13 @@
- {#if !source.githubAppId} + {#if !source.githubApp?.installationId}
General
+ {#if source.apiUrl && source.htmlUrl && source.name} + + {/if}
@@ -117,11 +120,6 @@ />
- {#if source.apiUrl && source.htmlUrl && source.name} -
- -
- {/if}
{:else if source.githubApp?.installationId}
diff --git a/src/routes/sources/[id]/index.svelte b/src/routes/sources/[id]/index.svelte index 4b12fe1c6..ffdd7d6a1 100644 --- a/src/routes/sources/[id]/index.svelte +++ b/src/routes/sources/[id]/index.svelte @@ -113,7 +113,7 @@
- {#if !source.gitlabAppId && !source.githubAppId} + {#if !source.gitlabAppId && (!source.githubAppId || !source.githubApp?.installationId)}
Select a provider