{$_("teams")}

{#if store.state.jwtinfo.userdetails.permissions.includes("TEAM:CREATE")} {/if} { modal_open = false; active_deletes[event.detail.id] = false; }} bind:modal_open={delete_modal_open} bind:delete_team /> {#if store.state.jwtinfo.userdetails.permissions.includes("TEAM:GET")} {#await teams_promise} {:then} {#if current_teams.length === 0} {:else}
{#each current_teams as t} {#if Object.values(t) .toString() .toLowerCase() .includes(searchvalue)} {/if} {/each}
{$_("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}
{$_("details")} {#if store.state.jwtinfo.userdetails.permissions.includes("TEAM:DELETE")} {/if}
{/if} {:catch error}
{$_("general_promise_error")} {error}
{/await} {/if}
{#if store.state.jwtinfo.userdetails.permissions.includes("TEAM:CREATE")} {/if}