remove deployment.domains

This commit is contained in:
Arman committed 2025-02-27 11:24:07 +01:00
1 parent cae46b8041
commit e54e421aee
4 files changed
+15 -10

No files matched your search

@@ -6,9 +6,9 @@
case 'ready':
return 'success';
case 'building':
return undefined;
case 'processing':
return 'warning';
case 'processing':
return undefined;
default:
return undefined;
}
@@ -42,8 +42,7 @@
framework={data.frameworks.frameworks.find((f) => f.key === data.site.framework)}
repositoryName={data?.repository?.name}
branch={data.repository?.id ? data.site.providerBranch : ''}
rootDir={data.repository?.id ? data.site.providerRootDirectory : ''}
domain={data.deployment.domain} />
rootDir={data.repository?.id ? data.site.providerRootDirectory : ''} />
</svelte:fragment>
<svelte:fragment slot="footer">
<Layout.Stack direction="row" alignItems="center" justifyContent="flex-end">
@@ -19,6 +19,8 @@
let showOpenOnMobile = false;
let showInviteCollaborator = false;
const siteURL = data.proxyRuleList.rules[0].domain;
onMount(() => {
if (
$page.url.searchParams.has('connectRepo') &&
@@ -50,9 +52,7 @@
proxyRuleList={data.proxyRuleList}
hideQRCode>
<svelte:fragment slot="footer">
<Button href={`${$protocol}${data.proxyRuleList.rules[0].domain}`} external>
Visit site
</Button>
<Button href={`${$protocol}${siteURL}`} external>Visit site</Button>
</svelte:fragment>
</SiteCard>
</Layout.Stack>
@@ -173,8 +173,8 @@
site={data.site}
callbackState={{ connectRepo: 'true' }} />
{/if}
{#if showOpenOnMobile && data.deployment.domain}
<OpenOnMobileModal bind:show={showOpenOnMobile} siteURL={data.deployment.domain} />
{#if showOpenOnMobile}
<OpenOnMobileModal bind:show={showOpenOnMobile} {siteURL} />
{/if}
{#if showInviteCollaborator}
@@ -41,7 +41,13 @@
{#if data?.deployment && data.deployment.status === 'ready'}
<SiteCard deployment={data.deployment} proxyRuleList={data.proxyRuleList}>
<svelte:fragment slot="footer">
<Button external href={`${$protocol}${data.deployment.domain}`}>Visit</Button>
{#if data.proxyRuleList.total}
<Button
external
href={`${$protocol}${data.proxyRuleList.rules[0]?.domain}`}>
Visit
</Button>
{/if}
<!-- TODO: disable when disabled={data.hasProdReadyDeployments} -->
<Button secondary on:click={() => (showRollback = true)}>
Instant rollback