Merge pull request #1326 from appwrite/fix-last-minute-1.6.x

fix: redirect step for after repo connection, hide projects in usage if empty
This commit is contained in:
Torsten Dittmann
2024-08-28 15:38:02 +02:00
committed by GitHub
2 changed files with 13 additions and 5 deletions
@@ -50,7 +50,7 @@
const callbackState = {
from: 'github',
to: 'template',
step: '4',
step: '5',
template: $template.id,
templateConfig: JSON.stringify($templateConfig)
};
@@ -149,7 +149,9 @@
}
}
]} />
<ProjectBreakdown projects={project} metric="bandwidth" {data} />
{#if project?.length > 0}
<ProjectBreakdown projects={project} metric="bandwidth" {data} />
{/if}
{:else}
<Card isDashed>
<div class="u-flex u-cross-center u-flex-vertical u-main-center u-flex">
@@ -198,7 +200,9 @@
)
}
]} />
<ProjectBreakdown projects={project} metric="users" {data} />
{#if project?.length > 0}
<ProjectBreakdown projects={project} metric="users" {data} />
{/if}
{:else}
<Card isDashed>
<div class="u-flex u-cross-center u-flex-vertical u-main-center u-flex">
@@ -248,7 +252,9 @@
]
}
]} />
<ProjectBreakdown projects={project} metric="executions" {data} />
{#if project?.length > 0}
<ProjectBreakdown projects={project} metric="executions" {data} />
{/if}
{:else}
<Card isDashed>
<div class="u-flex u-cross-center u-flex-vertical u-main-center u-flex">
@@ -284,7 +290,9 @@
progressValue={bytesToSize(current, 'GB')}
progressMax={max}
minimum={1} />
<ProjectBreakdown projects={project} metric="storage" {data} />
{#if project?.length > 0}
<ProjectBreakdown projects={project} metric="storage" {data} />
{/if}
{:else}
<Card isDashed>
<div class="u-flex u-cross-center u-flex-vertical u-main-center u-flex">