fix: dropdown

This commit is contained in:
Arman
2024-07-18 18:12:36 +02:00
parent aaa08e9e53
commit cc35fe6052
2 changed files with 12 additions and 6 deletions
@@ -28,7 +28,7 @@
let showDelete = false;
let showDropdown = [];
let countryList: Models.CountryList;
let showLinked = false;
let showLinked = [];
onMount(async () => {
countryList = await sdk.forProject.locale.listCountries();
@@ -76,8 +76,10 @@
</TableCell>
<TableCell style="vertical-align: top;">
{#if linkedOrgs?.length > 0}
<DropList bind:show={showLinked} width="20" scrollable>
<Pill button on:click={() => (showLinked = !showLinked)}>
<DropList bind:show={showLinked[i]} width="20" scrollable>
<Pill
button
on:click={() => (showLinked[i] = !showLinked[i])}>
<span class="icon-info" /> linked to organization
</Pill>
<svelte:fragment slot="list">
@@ -33,7 +33,7 @@
let showDelete = false;
let showEdit = false;
let isLinked = false;
let showLinked = false;
let showLinked = [];
$: orgList = $organizationList.teams as unknown as Organization[];
@@ -68,10 +68,14 @@
<CreditCardInfo {paymentMethod}>
<div class="u-flex u-gap-16 u-cross-center">
{#if linkedOrgs?.length > 0}
<DropList bind:show={showLinked} width="20" scrollable>
<DropList
bind:show={showLinked[i]}
width="20"
scrollable>
<Pill
button
on:click={() => (showLinked = !showLinked)}>
on:click={() =>
(showLinked[i] = !showLinked[i])}>
<span class="icon-info" /> linked to organization
</Pill>
<svelte:fragment slot="list">