From b416849d9ccd7ca0b59401dcf1963f8cb8210e8b Mon Sep 17 00:00:00 2001
From: Kaname <56084970+kaname-png@users.noreply.github.com>
Date: Wed, 7 Sep 2022 17:14:29 +0000
Subject: [PATCH] feat: re-apply ui improves
---
apps/ui/src/routes/applications/_index.svelte | 11 +++--
apps/ui/src/routes/databases/_index.svelte | 42 +++++++++---------
apps/ui/src/routes/destinations/_index.svelte | 41 +++++++++--------
apps/ui/src/routes/services/_index.svelte | 44 +++++++++----------
apps/ui/src/routes/sources/_index.svelte | 12 +++--
5 files changed, 81 insertions(+), 69 deletions(-)
diff --git a/apps/ui/src/routes/applications/_index.svelte b/apps/ui/src/routes/applications/_index.svelte
index 60644e16d..51d2fd74e 100644
--- a/apps/ui/src/routes/applications/_index.svelte
+++ b/apps/ui/src/routes/applications/_index.svelte
@@ -44,8 +44,10 @@
}
-
-
{$t('index.applications')}
+
-
+
+
+
{#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 e59f59384..f73281c12 100644
--- a/apps/ui/src/routes/databases/_index.svelte
+++ b/apps/ui/src/routes/databases/_index.svelte
@@ -42,28 +42,30 @@
});
-
-
{$t('index.databases')}
+
-
-
+
+
+
{#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 27656cdb7..25b738c55 100644
--- a/apps/ui/src/routes/destinations/_index.svelte
+++ b/apps/ui/src/routes/destinations/_index.svelte
@@ -36,27 +36,30 @@
});
-
-
{$t('index.destinations')}
+
-
+
+
+
{#if !destinations || ownDestinations.length === 0}
{$t('destination.no_destination_found')}
diff --git a/apps/ui/src/routes/services/_index.svelte b/apps/ui/src/routes/services/_index.svelte
index fd297e1cb..5772102db 100644
--- a/apps/ui/src/routes/services/_index.svelte
+++ b/apps/ui/src/routes/services/_index.svelte
@@ -43,28 +43,28 @@
});
-
-
{$t('index.services')}
- {#if $appSession.isAdmin}
-
- {/if}
-
-
-
+
+
+
{#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 a5a5f98ff..f7dfceae7 100644
--- a/apps/ui/src/routes/sources/_index.svelte
+++ b/apps/ui/src/routes/sources/_index.svelte
@@ -36,8 +36,10 @@
});
-
-
{$t('index.git_sources')}
+
-
+
+
+
{#if !sources || ownSources.length === 0}
{$t('source.no_git_sources_found')}
@@ -157,3 +160,4 @@
{/if}
+