From a7098df9cfe6ba4dffe2ed121b1e9ae69f40e89d Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Sat, 13 Feb 2021 20:13:05 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20ContactsEmptyState?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref #50 --- src/components/ContactsEmptyState.svelte | 17 +++++++++++++++++ src/components/ContactsOverview.svelte | 21 ++++++++++----------- 2 files changed, 27 insertions(+), 11 deletions(-) create mode 100644 src/components/ContactsEmptyState.svelte diff --git a/src/components/ContactsEmptyState.svelte b/src/components/ContactsEmptyState.svelte new file mode 100644 index 00000000..61ee6e5b --- /dev/null +++ b/src/components/ContactsEmptyState.svelte @@ -0,0 +1,17 @@ + + +
+

+ + There are no contacts added yet.
+ Add your first contact +

+
+ + diff --git a/src/components/ContactsOverview.svelte b/src/components/ContactsOverview.svelte index 6984475d..86546d2b 100644 --- a/src/components/ContactsOverview.svelte +++ b/src/components/ContactsOverview.svelte @@ -6,7 +6,7 @@ current_contacts=result; }) import store from "../store"; - // import TeamsEmptyState from "./TeamsEmptyState.svelte"; + import ContactsEmptyState from "./ContactsEmptyState.svelte"; $: searchvalue = ""; $: active_deletes = []; export let current_contacts = []; @@ -22,7 +22,7 @@ {:then} {#if current_contacts.length === 0} - + {:else} {JSON.stringify(current_contacts)}
- {#if t.contact} - {JSON.stringify(t.contact)} - {:else}no contact specified{/if} + + {t.address.address1}
+ {t.address.address2 || ''}
+ {t.address.postalcode} + {t.address.city} + {t.address.country}
@@ -118,20 +121,16 @@ Delete