From b0ff16fd12864c8daac389e686d7f1a054ab3a00 Mon Sep 17 00:00:00 2001 From: Arman Date: Wed, 28 Aug 2024 15:23:16 +0200 Subject: [PATCH] fix: redirect step for after repo connection, hide projects in usage if empty --- .../functions/steps/createRepository.svelte | 2 +- .../usage/[[invoice]]/+page.svelte | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/lib/wizards/functions/steps/createRepository.svelte b/src/lib/wizards/functions/steps/createRepository.svelte index d6126890c..e5610476d 100644 --- a/src/lib/wizards/functions/steps/createRepository.svelte +++ b/src/lib/wizards/functions/steps/createRepository.svelte @@ -50,7 +50,7 @@ const callbackState = { from: 'github', to: 'template', - step: '4', + step: '5', template: $template.id, templateConfig: JSON.stringify($templateConfig) }; diff --git a/src/routes/(console)/organization-[organization]/usage/[[invoice]]/+page.svelte b/src/routes/(console)/organization-[organization]/usage/[[invoice]]/+page.svelte index 7941d2040..d1fbdf0ee 100644 --- a/src/routes/(console)/organization-[organization]/usage/[[invoice]]/+page.svelte +++ b/src/routes/(console)/organization-[organization]/usage/[[invoice]]/+page.svelte @@ -149,7 +149,9 @@ } } ]} /> - + {#if project?.length > 0} + + {/if} {:else}
@@ -198,7 +200,9 @@ ) } ]} /> - + {#if project?.length > 0} + + {/if} {:else}
@@ -248,7 +252,9 @@ ] } ]} /> - + {#if project?.length > 0} + + {/if} {:else}
@@ -284,7 +290,9 @@ progressValue={bytesToSize(current, 'GB')} progressMax={max} minimum={1} /> - + {#if project?.length > 0} + + {/if} {:else}