diff --git a/src/components/contacts/ContactsOverview.svelte b/src/components/contacts/ContactsOverview.svelte index 23088c87..404cf76e 100644 --- a/src/components/contacts/ContactsOverview.svelte +++ b/src/components/contacts/ContactsOverview.svelte @@ -1,198 +1,198 @@ {#if store.state.jwtinfo.userdetails.permissions.includes("TEAM:GET")} - {#await promise} -
{$_("contacts-are-being-loaded")}
-{$_("this-might-take-a-moment")}
-- {$_("name")} - | -- {$_("groups")} - | -- {$_("address")} - | -- {$_("action")} - | -|
---|---|---|---|---|
-
-
-
-
-
- {t.firstname}
- {t.middlename || ""}
- {t.lastname}
-
- |
-
-
-
-
-
-
- {#if t.groups.length > 0}
- {#each t.groups as g}
- {#if g.responseType === "RUNNERORGANIZATION"}
- {g.name}
- {:else}
- {g.parentGroup.name}
- >
- {g.name}
- {/if}
- {/each}
- {:else}
- {$_("contact-is-not-a-member-in-any-group")}
- {/if}
-
- |
-
-
-
-
-
-
- {#if t.address.address1 !== null}
- {t.address.address1}
- - {t.address.address2 || ""} - {t.address.postalcode} - {t.address.city} - {t.address.country} - {/if} - |
- {#if active_deletes[t.id] === true}
- - - - | - {:else} -- {$_("details")} - {#if store.state.jwtinfo.userdetails.permissions.includes("TEAM:DELETE")} - - {/if} - | - {/if} -
{$_("contacts-are-being-loaded")}
+{$_("this-might-take-a-moment")}
++ {$_("name")} + | ++ {$_("groups")} + | ++ {$_("address")} + | ++ {$_("action")} + | +|
---|---|---|---|---|
+
+
+
+
+
+ {t.firstname}
+ {t.middlename || ""}
+ {t.lastname}
+
+ |
+
+
+
+
+ {#if t.groups.length > 0}
+ {#each t.groups as g}
+ {#if g.responseType === "RUNNERORGANIZATION"}
+ {g.name}
+ {:else}
+ {g.parentGroup.name}
+ >
+ {g.name}
+ {/if}
+ {/each}
+ {:else}
+ {$_("contact-is-not-a-member-in-any-group")}
+ {/if}
+
+ |
+
+
+
+
+
+
+ {#if t.address.address1 !== null}
+ {t.address.address1}
+ + {t.address.address2 || ""} + {t.address.postalcode} + {t.address.city} + {t.address.country} + {/if} + |
+ {#if active_deletes[t.id] === true}
+ + + + | + {:else} ++ {$_("details")} + {#if store.state.jwtinfo.userdetails.permissions.includes("TEAM:DELETE")} + + {/if} + | + {/if} +
{$_("organizations-are-being-loaded")}
-{$_("this-might-take-a-moment")}
-- - | -- {$_("name")} - | -- {$_("address")} - | -- {$_("contact")} - | -- {$_("action")} - | -|
---|---|---|---|---|---|
- - | -
-
-
-
-
-
- {o.name}
-
- |
-
-
-
-
-
-
- {#if o.address.address1 !== null}
- {o.address.address1}
- - - {o.address.postalcode} - {o.address.city} - {o.address.country} - {/if} - |
-
-
-
-
-
-
- {#if o.contact}
- {o.contact.firstname}
- {o.contact.middlename || ""}
- {o.contact.lastname}
- {:else}{$_("no-contact-specified")}{/if}
-
- |
- {#if active_deletes[o.id] === true}
- - - - | - {:else} -- {$_("details")} - {#if store.state.jwtinfo.userdetails.permissions.includes("ORGANIZATION:DELETE")} - - {/if} - | - {/if} -
{$_("organizations-are-being-loaded")}
+{$_("this-might-take-a-moment")}
++ + | ++ {$_("name")} + | ++ {$_("address")} + | ++ {$_("contact")} + | ++ {$_("action")} + | +|
---|---|---|---|---|---|
+ + | +
+
+
+
+ {o.name}
+
+ |
+
+
+
+
+ {#if o.address.address1 !== null}
+ {o.address.address1}
+ + + {o.address.postalcode} + {o.address.city} + {o.address.country} + {/if} + |
+
+
+
+
+ {#if o.contact}
+ {o.contact.firstname}
+ {o.contact.middlename || ""}
+ {o.contact.lastname}
+ {:else}{$_("no-contact-specified")}{/if}
+
+ |
+ {#if active_deletes[o.id] === true}
+ + + + | + {:else} ++ {$_("details")} + {#if store.state.jwtinfo.userdetails.permissions.includes("ORGANIZATION:DELETE")} + + {/if} + | + {/if} +
{$_("teams-are-being-loaded")}
-{$_("this-might-take-a-moment")}
-- - | -- {$_("name")} - | -- {$_("organization")} - | -- {$_("contact")} - | -- {$_("action")} - | -|
---|---|---|---|---|---|
- - | -
-
-
-
-
-
- {t.name}
-
- |
-
-
-
-
-
-
- {#if t.parentGroup}
- {t.parentGroup.name}
- {:else}{$_("no-organization-specified")}{/if}
-
- |
-
-
-
-
-
-
- {#if t.contact}
- {t.contact.firstname}
- {t.contact.middlename || ""}
- {t.contact.lastname}
- {:else}{$_("no-contact-specified")}{/if}
-
- |
- {#if active_deletes[t.id] === true}
- - - - | - {:else} -- {$_("details")} - {#if store.state.jwtinfo.userdetails.permissions.includes("TEAM:DELETE")} - - {/if} - | - {/if} -
{$_("teams-are-being-loaded")}
+{$_("this-might-take-a-moment")}
++ + | ++ {$_("name")} + | ++ {$_("organization")} + | ++ {$_("contact")} + | ++ {$_("action")} + | +|
---|---|---|---|---|---|
+ + | +
+
+
+
+ {t.name}
+
+ |
+
+
+
+
+ {#if t.parentGroup}
+ {t.parentGroup.name}
+ {:else}{$_("no-organization-specified")}{/if}
+
+ |
+
+
+
+
+ {#if t.contact}
+ {t.contact.firstname}
+ {t.contact.middlename || ""}
+ {t.contact.lastname}
+ {:else}{$_("no-contact-specified")}{/if}
+
+ |
+ {#if active_deletes[t.id] === true}
+ + + + | + {:else} ++ {$_("details")} + {#if store.state.jwtinfo.userdetails.permissions.includes("TEAM:DELETE")} + + {/if} + | + {/if} +