{ modal_open = false; active_deletes[event.detail.id] = false; }} bind: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 active_deletes[t.id] === true} {:else} {/if} {/if} {/each}
{ const newstate = !current_teams.some( (r) => r.is_selected === true ); current_teams = current_teams.map((r) => { r.is_selected = newstate; return r; }); }} class="underline cursor-pointer select-none" >{#if current_teams.some((r) => r.is_selected === true)} {$_("deselect-all")} {:else}{$_("select-all")}{/if} {$_("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}