fix: deployment title, hide gh button on signup in self hosted

This commit is contained in:
Arman committed 2023-08-23 15:06:06 +02:00
1 parent 8a0436b220
commit 25b77441fe
3 files changed
+12 -9

No files matched your search

@@ -18,7 +18,7 @@
},
{
href: `/console/project-${$project?.$id}/functions/function-${$func?.$id}/deployment-${$deployment?.$id}`,
title: 'Deployment details'
title: 'Deployment'
}
];
</script>
@@ -11,7 +11,7 @@
<Cover>
<svelte:fragment slot="header">
<CoverTitle href={`/console/project-${projectId}/functions/function-${functionId}`}>
Deployment details
Deployment
</CoverTitle>
<Id value={$deployment.$id}>{$deployment.$id}</Id>
</svelte:fragment>
+10 -7
View File
@@ -17,6 +17,7 @@
import { Dependencies } from '$lib/constants';
import { Submit, trackError, trackEvent } from '$lib/actions/analytics';
import { ID } from '@appwrite.io/console';
import { isCloud } from '$lib/system';
let name: string, mail: string, pass: string, disabled: boolean;
let terms = false;
@@ -95,13 +96,15 @@
<FormItem>
<Button fullWidth submit {disabled}>Sign up</Button>
</FormItem>
<span class="with-separators eyebrow-heading-3">or</span>
<FormItem>
<Button github fullWidth on:click={onGithubLogin} {disabled}>
<span class="icon-github" aria-hidden="true" />
<span class="text">Sign up with GitHub</span>
</Button>
</FormItem>
{#if isCloud}
<span class="with-separators eyebrow-heading-3">or</span>
<FormItem>
<Button github fullWidth on:click={onGithubLogin} {disabled}>
<span class="icon-github" aria-hidden="true" />
<span class="text">Sign up with GitHub</span>
</Button>
</FormItem>
{/if}
</FormList>
</Form>
</svelte:fragment>