diff --git a/src/routes/console/organization-[organization]/+page.svelte b/src/routes/console/organization-[organization]/+page.svelte index 513fd7843a..337589afcd 100644 --- a/src/routes/console/organization-[organization]/+page.svelte +++ b/src/routes/console/organization-[organization]/+page.svelte @@ -31,6 +31,7 @@ import type { RegionList } from '$lib/sdk/billing'; import { onMount } from 'svelte'; import CreateOrganizationCloud from '../createOrganizationCloud.svelte'; + import { organization } from '$lib/stores/organization'; export let data; @@ -136,93 +137,96 @@ } - -
- Projects +{#if $organization?.$id} + +
+ Projects - - - - (showCreate = true)}>Empty project - -
- Import project Experimental -
-
-
-
-
- - {#if data.projects.total} - - {#each data.projects.projects as project} -
  • - - - {project?.platforms?.length ? project?.platforms?.length : 'No'} apps - - - {project.name} - - {#if allServiceDisabled(project)} -

    -

    - {/if} - {@const platforms = filterPlatforms( - project.platforms.map((platform) => getPlatformInfo(platform.type)) - )} - {#each platforms as platform, i} - {#if i < 3} + + + + (showCreate = true)}>Empty project + +
    + Import project Experimental +
    +
    +
    +
    +
  • + + {#if data.projects.total} + + {#each data.projects.projects as project} + {@const platforms = filterPlatforms( + project.platforms.map((platform) => getPlatformInfo(platform.type)) + )} +
  • + + + {project?.platforms?.length ? project?.platforms?.length : 'No'} apps + + + {project.name} + + {#if allServiceDisabled(project)} +

    +

    + {/if} + + {#each platforms as platform, i} + {#if i < 3} + + + {/if} + {/each} + {#if platforms?.length > 3} - {/if} - {/each} - {#if platforms?.length > 3} - - +{project.platforms.length - 3} - - {/if} - - {#if isCloud && regions} - {@const region = findRegion(project)} - - {region.name} - - {/if} - -
    -
  • - {/each} - -

    Create a new project

    -
    -
    - {:else} - - {/if} - - -
    - - - + + {#if isCloud && regions} + {@const region = findRegion(project)} + + {region?.name} + + {/if} + + + + {/each} + +

    Create a new project

    +
    + + {:else} + + {/if} + + + + + + +{/if} diff --git a/src/routes/console/organization-[organization]/billing/billingAddress.svelte b/src/routes/console/organization-[organization]/billing/billingAddress.svelte index ab8c8afbc6..aa432851b8 100644 --- a/src/routes/console/organization-[organization]/billing/billingAddress.svelte +++ b/src/routes/console/organization-[organization]/billing/billingAddress.svelte @@ -155,8 +155,12 @@ - - +{#if showCreate} + +{/if} +{#if showEdit} + +{/if} {#if showReplace} {/if} diff --git a/src/routes/console/organization-[organization]/breadcrumbs.svelte b/src/routes/console/organization-[organization]/breadcrumbs.svelte index 62b3a6f209..e2a847beb3 100644 --- a/src/routes/console/organization-[organization]/breadcrumbs.svelte +++ b/src/routes/console/organization-[organization]/breadcrumbs.svelte @@ -4,8 +4,8 @@ $: breadcrumbs = [ { - href: `/console/organization-${$organization.$id}`, - title: $organization.name + href: `/console/organization-${$organization?.$id}`, + title: $organization?.name } ]; diff --git a/src/routes/console/organization-[organization]/header.svelte b/src/routes/console/organization-[organization]/header.svelte index fbc193c3fc..df325e0c7d 100644 --- a/src/routes/console/organization-[organization]/header.svelte +++ b/src/routes/console/organization-[organization]/header.svelte @@ -80,86 +80,88 @@ : permanentTabs; - - - - - - {#each $organizationList.teams as org} - (showDropdown = false)}> - {org.name} - - {/each} - - -
    -
      - - New Organization - -
    -
    -
    -
    -
    - - - -
    - +{#if $organization.$id} + + + + + + {#each $organizationList.teams as org} + (showDropdown = false)}> + {org.name} + + {/each} + + +
    +
      + + New Organization + +
    +
    +
    +
    +
    + + + +
    + +
    -
    -
    - - {#each tabs as tab} - - {tab.title} - - {/each} - - +
    + + {#each tabs as tab} + + {tab.title} + + {/each} + + +{/if}