fix: new source canceled view

This commit is contained in:
Andras Bacsai 2022-05-19 15:18:19 +02:00
parent 54f7142b2b
commit 795f99bb47
2 changed files with 5 additions and 7 deletions

View File

@ -80,10 +80,13 @@
</script> </script>
<div class="mx-auto max-w-4xl px-6"> <div class="mx-auto max-w-4xl px-6">
{#if !source.githubAppId} {#if !source.githubApp?.installationId}
<form on:submit|preventDefault={newGithubApp} class="py-4"> <form on:submit|preventDefault={newGithubApp} class="py-4">
<div class="flex space-x-1 pb-5 font-bold"> <div class="flex space-x-1 pb-5 font-bold">
<div class="title">General</div> <div class="title">General</div>
{#if source.apiUrl && source.htmlUrl && source.name}
<button class=" bg-orange-600" type="submit">Create new GitHub App</button>
{/if}
</div> </div>
<div class="grid grid-flow-row gap-2 px-10"> <div class="grid grid-flow-row gap-2 px-10">
<div class="grid grid-flow-row gap-2"> <div class="grid grid-flow-row gap-2">
@ -117,11 +120,6 @@
/> />
</div> </div>
</div> </div>
{#if source.apiUrl && source.htmlUrl && source.name}
<div class="text-center">
<button class=" mt-8 bg-orange-600" type="submit">Create new GitHub App</button>
</div>
{/if}
</form> </form>
{:else if source.githubApp?.installationId} {:else if source.githubApp?.installationId}
<form on:submit|preventDefault={handleSubmit} class="py-4"> <form on:submit|preventDefault={handleSubmit} class="py-4">

View File

@ -113,7 +113,7 @@
</div> </div>
<div class="flex flex-col justify-center"> <div class="flex flex-col justify-center">
{#if !source.gitlabAppId && !source.githubAppId} {#if !source.gitlabAppId && (!source.githubAppId || !source.githubApp?.installationId)}
<div class="flex-col space-y-2 pb-10 text-center"> <div class="flex-col space-y-2 pb-10 text-center">
<div class="text-xl font-bold text-white">Select a provider</div> <div class="text-xl font-bold text-white">Select a provider</div>
<div class="flex justify-center space-x-2"> <div class="flex justify-center space-x-2">