From bf5659d0e24f949995b77f6c2f156dfbf824928d Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 23 Aug 2022 10:19:57 +0200 Subject: [PATCH] fix: dashboard for non-root users --- apps/ui/src/routes/applications/index.svelte | 2 +- apps/ui/src/routes/databases/index.svelte | 2 +- apps/ui/src/routes/destinations/index.svelte | 2 +- apps/ui/src/routes/iam/index.svelte | 1 + apps/ui/src/routes/index.svelte | 12 ++++++++---- apps/ui/src/routes/services/index.svelte | 2 +- apps/ui/src/routes/sources/index.svelte | 2 +- 7 files changed, 14 insertions(+), 9 deletions(-) diff --git a/apps/ui/src/routes/applications/index.svelte b/apps/ui/src/routes/applications/index.svelte index 6dbb09ee4..60644e16d 100644 --- a/apps/ui/src/routes/applications/index.svelte +++ b/apps/ui/src/routes/applications/index.svelte @@ -64,7 +64,7 @@ {/if} -
+
{#if !applications || ownApplications.length === 0}
{$t('application.no_applications_found')}
diff --git a/apps/ui/src/routes/databases/index.svelte b/apps/ui/src/routes/databases/index.svelte index c14c9c3f3..04dbeb768 100644 --- a/apps/ui/src/routes/databases/index.svelte +++ b/apps/ui/src/routes/databases/index.svelte @@ -61,7 +61,7 @@
-
+
{#if !databases || ownDatabases.length === 0}
{$t('database.no_databases_found')}
diff --git a/apps/ui/src/routes/destinations/index.svelte b/apps/ui/src/routes/destinations/index.svelte index 4c8696780..27656cdb7 100644 --- a/apps/ui/src/routes/destinations/index.svelte +++ b/apps/ui/src/routes/destinations/index.svelte @@ -56,7 +56,7 @@ {/if}
-
+
{#if !destinations || ownDestinations.length === 0}
{$t('destination.no_destination_found')}
diff --git a/apps/ui/src/routes/iam/index.svelte b/apps/ui/src/routes/iam/index.svelte index 30e2e0260..e50c2fbdd 100644 --- a/apps/ui/src/routes/iam/index.svelte +++ b/apps/ui/src/routes/iam/index.svelte @@ -212,6 +212,7 @@
+ {#if $appSession.teamId === '0'} + + {/if}
-
+
{#if applications.length > 0} @@ -341,6 +343,8 @@
+ {:else} +
Nothing is configured yet.
{/if} {#if $appSession.teamId === '0'} diff --git a/apps/ui/src/routes/services/index.svelte b/apps/ui/src/routes/services/index.svelte index 44b8e6381..fe3bed644 100644 --- a/apps/ui/src/routes/services/index.svelte +++ b/apps/ui/src/routes/services/index.svelte @@ -62,7 +62,7 @@
-
+
{#if !services || ownServices.length === 0}
{$t('service.no_service')}
diff --git a/apps/ui/src/routes/sources/index.svelte b/apps/ui/src/routes/sources/index.svelte index f0e3741da..a5a5f98ff 100644 --- a/apps/ui/src/routes/sources/index.svelte +++ b/apps/ui/src/routes/sources/index.svelte @@ -56,7 +56,7 @@ {/if}
-
+
{#if !sources || ownSources.length === 0}
{$t('source.no_git_sources_found')}